From 4e0862a085af88e7ea27876b277d0272787b3de4 Mon Sep 17 00:00:00 2001 From: nleanba <25827850+nleanba@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:12:32 +0100 Subject: [PATCH] add `(` to BaseAuthority in URI this should improve the ability to find wrong annotations --- src/gg2rdf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gg2rdf.ts b/src/gg2rdf.ts index 395790c..c288110 100644 --- a/src/gg2rdf.ts +++ b/src/gg2rdf.ts @@ -1230,7 +1230,7 @@ export function gg2rdf( authorityName = substringBefore(authorityName, ","); // Take Last Name authorityName = substringAfter(authorityName, " "); - const match = authorityName.match(/\p{L}+/u); + const match = authorityName.match(/\(?\p{L}+/u); if (match && match[0]) return partialURI(match[0]); return partialURI(authorityName); }