1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-24 12:47:05 +00:00

Fixed RUF055 (unnecessary-regular-expression): Plain string pattern passed to re function

This commit is contained in:
Teal Dulcet 2025-01-08 05:16:40 -08:00
parent d7d91eeb79
commit a4af9273ee

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(r"hide_output ", "", string)
string = string.replace("hide_output ", "")
parser = BashScript.parser()
result = parser.parse_string(string)