Skip to content

Commit

Permalink
case insensitive AND replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba committed Sep 27, 2024
1 parent 5871f9b commit 4d6c9e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gg2rdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ export function gg2rdf(
.replaceAll('"', "")
.replaceAll("'", "")
.replaceAll(/(?:\b\p{Uppercase_Letter}\.\s+)+(\w+)/ug, "$1")
.replaceAll(/\s+and\s+/g, " & ")
.replaceAll(/\s+et\s+([^a])/g, " & $1")
.replaceAll(/\s+and\s+/gi, " & ")
.replaceAll(/\s+et\s+([^a])/gi, " & $1")
.replace(/\)\)$/, ")")
.replace(/^\(\(/, "(")
.replace(/^\s*[,:;]+\s*/, "")
Expand Down

0 comments on commit 4d6c9e5

Please sign in to comment.