Skip to content

Commit d10a582

Browse files
authored
Update lib/cldr.js
1 parent 9a3e4e3 commit d10a582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cldr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,11 @@ Cldr.prototype = {
850850
);
851851
const dayPeriodRules = xpath.select('dayPeriodRule', dayPeriodRulesNode);
852852

853-
const dayPeriodRulesSelectNode = xpath.select(
853+
const dayPeriodRulesSelectNode = xpath.select1(
854854
"/supplementalData/dayPeriodRuleSet[@type='selection']" +
855855
`/dayPeriodRules[@locales='${localeId}']`,
856856
document,
857-
)[0];
857+
);
858858
const dayPeriodSelectsRules = xpath.select(
859859
'dayPeriodRule',
860860
dayPeriodRulesSelectNode,

0 commit comments

Comments
 (0)