X Tutup
Skip to content

Commit 12b9939

Browse files
committed
Minor refactoring
1 parent 29bdcf0 commit 12b9939

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tamper/equaltolike.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def tamper(payload, **kwargs):
3838
retVal = payload
3939

4040
if payload:
41-
for regex, subst in ((r"\s+=\s+", " LIKE "), (r"\s+=", " LIKE"), (r"=\s+", "LIKE ")):
42-
retVal = re.sub(regex, subst, retVal)
41+
retVal = re.sub(r"\s*=\s*", " LIKE ", retVal)
4342

4443
return retVal

0 commit comments

Comments
 (0)
X Tutup