Skip to content

Commit

Permalink
Split jurisdiction prefs on space, not comma, as in CSL
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jun 7, 2019
1 parent 0fa4fe1 commit cf4f7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util_locale.js
Expand Up @@ -334,7 +334,7 @@ CSL.Engine.prototype.localeSet = function (myxml, lang_in, lang_out) {
this.locale[lang_out].opts[attrname.slice(1)] = false;
}
} else if (attrname === "@jurisdiction-preference") {
var jurisdiction_preference = attributes[attrname].split(/\s*,\s*/);
var jurisdiction_preference = attributes[attrname].split(/\s+/);
this.locale[lang_out].opts[attrname.slice(1)] = jurisdiction_preference;
} else if (attrname === "@skip-words") {
var skip_words = attributes[attrname].split(/\s*,\s*/);
Expand Down

0 comments on commit cf4f7e8

Please sign in to comment.