Skip to content

Commit 99d99ad

Browse files
authored
Merge pull request #645 from NYPL/NOREF-new-role-format
Use || instead of | to parse roles
2 parents 5fa8ca3 + f4a5152 commit 99d99ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/contributors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const ElasticQueryBrowseBuilder = require('./elasticsearch/elastic-query-browse-
66
const BROWSE_INDEX = process.env.BROWSE_INDEX
77

88
const parseNameAndRole = (delimitedString) => {
9-
if (!delimitedString.includes('|')) {
9+
if (!delimitedString.includes('||')) {
1010
return { name: delimitedString, role: null }
1111
}
12-
const [name, role] = delimitedString.split('|')
12+
const [name, role] = delimitedString.split('||')
1313
return { name, role }
1414
}
1515

0 commit comments

Comments
 (0)