Fix CES urn:smn:....

Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
gtema 2022-10-26 16:25:27 +00:00 committed by zuul
parent ab56d080fb
commit 2c9359c16c

View File

@ -331,6 +331,8 @@ class OTCDocConvertor:
r"^([^a-zA-Z0-9\s]{10,})$", r"^([^a-zA-Z0-9\s]{10,})$",
# OBS special chars - "\$" "\\" etc # OBS special chars - "\$" "\\" etc
r"^(\\[\$\\bfnrtvu]{1})$", r"^(\\[\$\\bfnrtvu]{1})$",
# CES contains: urn:smn:([a-z]|[A-Z]|[0-9]|\\-){1,32}:....
r"\s(urn:smn:\(.*)\.",
] ]
for to_rawize in rawize_strings: for to_rawize in rawize_strings:
for p in soup.body.find_all(string=re.compile(to_rawize)): for p in soup.body.find_all(string=re.compile(to_rawize)):