Fixed ISC003 (explicit-string-concatenation): Explicitly concatenated string should be implicitly concatenated

This commit is contained in:
Teal Dulcet 2023-12-23 06:00:04 -08:00 committed by Joshua Tauberer
parent 775a4223de
commit dbc2b5eee0
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ while len(input_lines) > 0:
name, val = settings[i].split("=", 1)
m = re.match(
r"(\s*)"
+ "(" + re.escape(comment_char) + r"\s*)?"
"(" + re.escape(comment_char) + r"\s*)?"
+ re.escape(name) + delimiter_re + r"(.*?)\s*$",
line, re.S)
if not m: continue