Skip to content

Commit 87b883e

Browse files
committed
add locale check
1 parent 2563c95 commit 87b883e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cldr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ Cldr.prototype = {
839839
},
840840

841841
extractDayPeriodRules(localeId) {
842+
this.checkValidLocaleId(localeId);
842843
const document = this.getDocument(
843844
Path.resolve(this.cldrPath, 'common', 'supplemental', 'dayPeriods.xml'),
844845
);

0 commit comments

Comments
 (0)