mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
fdt: Fix regex template
Source: https://github.com/molejar/pyFDT/issues/27
This commit is contained in:
@@ -64,7 +64,7 @@ def get_version_info(text):
|
|||||||
|
|
||||||
|
|
||||||
def strip_comments(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
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user