From 12b9939baaaa8b8b976da431cffdce7a63bc230e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 24 Sep 2015 10:24:37 +0200 Subject: [PATCH] Minor refactoring --- tamper/equaltolike.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tamper/equaltolike.py b/tamper/equaltolike.py index 51ce4c5ea..05615355b 100644 --- a/tamper/equaltolike.py +++ b/tamper/equaltolike.py @@ -38,7 +38,6 @@ def tamper(payload, **kwargs): retVal = payload if payload: - for regex, subst in ((r"\s+=\s+", " LIKE "), (r"\s+=", " LIKE"), (r"=\s+", "LIKE ")): - retVal = re.sub(regex, subst, retVal) + retVal = re.sub(r"\s*=\s*", " LIKE ", retVal) return retVal