From c5d40d4e27aa15cec42ad3f7f912e1a9a932d6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=81?= Date: Fri, 27 Nov 2020 18:02:10 +0300 Subject: [PATCH] To close issue. fixed #51 --- calculate/templates/format/regex_format.py | 1 + 1 file changed, 1 insertion(+) diff --git a/calculate/templates/format/regex_format.py b/calculate/templates/format/regex_format.py index 8d36d9c..cebbf0e 100644 --- a/calculate/templates/format/regex_format.py +++ b/calculate/templates/format/regex_format.py @@ -111,6 +111,7 @@ class RegexFormat(Format): break if patch_element.tag == patch_tag: + # Если тег пустой -- это ошибка. if patch_element.text is not None: element_text = patch_element.text if patch_tag == "reg" and element_text.strip() == '':