From a13ab131d5aae80d81215d077f51b9333f59a74f Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:22:09 +0100 Subject: [PATCH] Increase MAX_PEEK_CONTENT to 1000 in DocumentValidator As some documents may contain extra definitions before the root tag. --- server/galaxyls/services/validation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/galaxyls/services/validation.py b/server/galaxyls/services/validation.py index 5a1d093..435e7aa 100644 --- a/server/galaxyls/services/validation.py +++ b/server/galaxyls/services/validation.py @@ -5,9 +5,7 @@ from galaxyls.services.xml.types import DocumentType -MAX_PEEK_CONTENT = 100 -TAG_GROUP_NAME = "tag" -TAG_REGEX = rf"[\n\s]*?.*?[\n\s]*?<(?!\?)(?P<{TAG_GROUP_NAME}>[\w]*)" +MAX_PEEK_CONTENT = 1000 class DocumentValidator: