fdt: Fix regex template

Source: https://github.com/molejar/pyFDT/issues/27
This commit is contained in:
remittor
2025-03-20 16:20:29 +03:00
parent 4dc1c2a4a3
commit 5a8ed1a10c
+1 -1
View File
@@ -64,7 +64,7 @@ def get_version_info(text):
def strip_comments(text):
text = re.sub('//.*?(\r\n?|\n)|/\*.*?\*/', '\n', text, flags=re.S)
text = re.sub(r'//.?(\r\n?|\n)|/*.?*/', '\n', text, flags=re.S)
return text