Minor refactoring

This commit is contained in:
Miroslav Stampar
2019-05-30 22:55:54 +02:00
parent f8e9f9c87d
commit 257fa3e9e4
14 changed files with 19 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ def tamper(payload, **kwargs):
retVal = payload
if payload:
retVal = re.sub(r"(?<=\W)(?P<word>[A-Za-z_]+)(?=[^\w(]|\Z)", lambda match: process(match), retVal)
retVal = re.sub(r"(?<=\W)(?P<word>[A-Za-z_]+)(?=[^\w(]|\Z)", process, retVal)
retVal = retVal.replace(" /*!", "/*!").replace("*/ ", "*/")
return retVal