Skip to content

Commit

Permalink
replace multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t committed Nov 12, 2024
1 parent 9ab3c8b commit 2dd3a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patcher/Hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def lines_to_cpp(self):
line = line.translate(str.maketrans({"\"": r"\"", "\\": r"\\", }))

if FUNCTION_NAME_RE.findall(line):
line = FUNCTION_NAME_RE.sub(r'"QU(\1)"', line)
line = FUNCTION_NAME_RE.subn(r'"QU(\1)"', line)[0]

s += f'"{line};"\n'
return s
Expand Down

0 comments on commit 2dd3a2d

Please sign in to comment.