fix comment

regex-cleanup-311
dgtlmoon 1 year ago
parent b344adb53d
commit 18d48bc2a0

@ -30,7 +30,7 @@ def perl_style_slash_enclosed_regex_to_options(regex):
flags = res.group(2) if res.group(2) else 'i' flags = res.group(2) if res.group(2) else 'i'
regex = f"(?{flags}){res.group(1)}" regex = f"(?{flags}){res.group(1)}"
else: else:
# Fall back to exactly what it contains as an option # Fall back to just ignorecase as an option
regex = f"(?i){regex}" regex = f"(?i){regex}"
return regex return regex

Loading…
Cancel
Save