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

Commit ce0a12a

Browse files
committed
Merge pull request #73 from ShawnXiangXu/master
Only trim whitespace and commas from date/time format strings (fixes #72)
2 parents cd27720 + 6ac8a00 commit ce0a12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Ldml2Json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ function processObj(data) {
413413
order
414414
.replace('{0}', avail[frmt[0]] || '')
415415
.replace('{1}', dFrmt || '')
416-
.replace(/^[^a-z0-9]+|[^a-z0-9]+$/gi, '')
416+
.replace(/^[,\s]+|[,\s]+$/gi, '')
417417
);
418418
});
419419
});

0 commit comments

Comments
 (0)