From ba6994e00df974ba93be5e713c65d1e06dc57f6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philip=20R=C3=B6ggla?= <philip.roeggla@onb.ac.at>
Date: Tue, 21 Jul 2020 13:25:11 +0200
Subject: [PATCH] gnid can have 10 digits

---
 travelogues_extraction/dataextractors/abstract.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/travelogues_extraction/dataextractors/abstract.py b/travelogues_extraction/dataextractors/abstract.py
index 42990c5..32e14da 100644
--- a/travelogues_extraction/dataextractors/abstract.py
+++ b/travelogues_extraction/dataextractors/abstract.py
@@ -87,7 +87,7 @@ class AbstractMultifield(AbstractDataExtractor):
         isgnd: bool
 
     xpath_isgnd_tuples: typing.Tuple[XpathIsGnd]
-    gnd_regex = regex.compile(r'(?<=\(DE-588\))[\d\-X]{8,9}')
+    gnd_regex = regex.compile(r'(?<=\(DE-588\))[\d\-X]{8,10}')
 
     def get_gnd_as_uri(self, any_string: str) -> str:
         found = self.gnd_regex.search(any_string)
-- 
GitLab