diff --git a/xmir_base/fdt/misc.py b/xmir_base/fdt/misc.py index a7d1382..6c323c3 100644 --- a/xmir_base/fdt/misc.py +++ b/xmir_base/fdt/misc.py @@ -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