fix(pipes): remove bidi control chars (#10870)

Fix inconsistent results in Edge vs. other browsers.

Closes #10080.
This commit is contained in:
John-David Dalton
2016-08-18 13:31:33 -07:00
committed by Kara
parent 2f41b5c8a0
commit 91980382e8
2 changed files with 10 additions and 5 deletions

View File

@ -97,6 +97,9 @@ export function main() {
expect(pipe.transform(date, 'mediumTime')).toEqual('9:03:01 AM');
expect(pipe.transform(date, 'shortTime')).toEqual('9:03 AM');
});
it('should remove bidi control characters',
() => { expect(pipe.transform(date, 'MM/dd/yyyy').length).toEqual(10); });
});
}
});