1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-17 17:57:23 +01:00

Fixed RUF039 (unraw-re-pattern)

This commit is contained in:
Teal Dulcet
2025-01-08 05:12:17 -08:00
parent d31716a9c7
commit 4e3e85cd14
5 changed files with 8 additions and 8 deletions

View File

@@ -408,7 +408,7 @@ class BashScript(Grammar):
string = re.sub(".* #NODOC\n", "", string)
string = re.sub("\n\s*if .*then.*|\n\s*fi|\n\s*else|\n\s*elif .*", "", string)
string = quasitokenize(string)
string = re.sub("hide_output ", "", string)
string = re.sub(r"hide_output ", "", string)
parser = BashScript.parser()
result = parser.parse_string(string)