Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 8f67710

Browse files
author
Andy Earnshaw
committed
Use replace() instead of trim() for IE support
1 parent eec2008 commit 8f67710

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/Intl.complete.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cldr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function createDateTimeFormat(format) {
111111
if (formatObj.pattern.indexOf('{ampm}') > -1) {
112112
formatObj.hour12 = true;
113113
formatObj.pattern12 = formatObj.pattern;
114-
formatObj.pattern = formatObj.pattern.replace('{ampm}', '').trim();
114+
formatObj.pattern = formatObj.pattern.replace('{ampm}', '').replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
115115
}
116116

117117
return formatObj;

0 commit comments

Comments
 (0)