RegEx bug in javascript

Fixed, not yet flighted Issue #737451

Details

Created
Aug 25, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Using IE10, add the following javascript to a html page, note the value of str:

var str = '=gantt(G$0,$A4,$B4) ';
var val = "G$0";
var val2 = val.replace(/$/, “\$”)
var reg = new RegExp(val2, ‘g’);
var str = str.replace(reg, ‘<>’ + val + ‘<>’);

Expected Results:

I expect to have the following output: =gantt(<>G$0<>,$A4,$B4)

Actual Results:

Dev Channel specific:

Yes

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “K7 S.”

      Changed Assigned To from “K7 S.” to “Paul L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Paul L.” to “Kount V.”

      Changed Title from “RegEx bug in javascript (replicate in IE10)” to “RegEx bug in javascript”

      Changed Assigned To from “Kount V.” to “Andrei B.”

      Changed Assigned To from “Andrei B.” to “IE F.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

      Changed Assigned To from “IE F.” to “Gaurav S.”

      Changed Assigned To from “Gaurav S.” to “Brian T.”

      Changed Assigned To to “Brian T.”

      Changed Assigned To to “Bogdan B.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in