fix(pipes): remove bidi control chars (#10870)
Fix inconsistent results in Edge vs. other browsers. Closes #10080.
This commit is contained in:
@ -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); });
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user