Skip to content

Commit

Permalink
Add workaround for encoding issue in jskos-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Feb 5, 2024
1 parent 116468a commit 32ccd8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export async function* getConceptFromBackend(input, options = {}) {
}
const member = ddc.conceptFromNotation(notation)
if (member) {
// Workaround for bug in jskos-tools that doesn't deal correctly with : in notations
member.uri = member.uri.replace("%3A", ":")
member.notation[0] = member.notation[0].replace("%3A", ":")
member.prefLabel = { de: prefLabel }
member.notation.push(lineMatch[1])
current.memberList.push(member)
Expand Down

0 comments on commit 32ccd8f

Please sign in to comment.