javascript Date object method toLocalDateString and Unicode Character \u200E

Duplicate Issue #101108 • See Issue #101495

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Duplicates
See progress on Bug #101495
Found in build #
0.0011
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL = http://msn.com

URL:

Repro Steps:

var date1 = new Date().toLocaleDateString();

console.log(date1); 
//outputs "21/03/2014"

console.log(date1.replace(/\u200E/g,"*"));
//outputs "*21*/*03*/*2014"

Expected Results:

this is javascript

var date1 = new Date().toLocaleDateString();

console.log(date1); 
//outputs "21/03/2014"

console.log(date1.replace(/\u200E/g,"*"));
//should output "21/03/2014" as there shouldn't be any \u200E characters in the string?

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Brian T.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Duplicate”

      Changed Steps to Reproduce

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

    Sign in