regexp match fix
This commit is contained in:
parent
8b83d282e8
commit
24603e0f60
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class Condition:
|
|||
if t == 'ne':
|
||||
return 'not([%s] = \'%s\')'%(params[0], params[1])
|
||||
if t == 'regex':
|
||||
return '[%s].match(%s)'%(params[0], params[1])
|
||||
return '[%s].match(\'%s\')'%(params[0], params[1].replace("'","\\'"))
|
||||
if t == 'true':
|
||||
return '[%s] = \'yes\''%(params[0])
|
||||
if t == 'untrue':
|
||||
|
|
Loading…
Add table
Reference in a new issue