(ar)(pronouns) handle arabic comma when splitting inline lists

This commit is contained in:
Andrea Vos 2023-06-17 15:25:19 +02:00
parent 720e000ece
commit 376a833557
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export const buildPronoun = (pronouns, path) => {
export const parsePronouns = (pronounsRaw) => {
return buildDict(function* () {
for (let t of pronounsRaw) {
const aliases = t.key.split(',');
const aliases = t.key.replace(/،/g, ',').split(',');
yield [
aliases[0],

View File

@ -35,7 +35,7 @@ export const pronounGroups = buildList(function* () {
for (let g of pronounGroupsRaw) {
yield new PronounGroup(
g.name,
g.pronouns ? g.pronouns.split(',') : [],
g.pronouns ? g.pronouns.replace(/،/g, ',').split(',') : [],
g.description,
g.key || null,
);