Added catchall and str() for regex
This commit is contained in:
@@ -2803,9 +2803,12 @@ class AppBase:
|
|||||||
return False
|
return False
|
||||||
elif check.lower() == "re" or check.lower() == "matches regex":
|
elif check.lower() == "re" or check.lower() == "matches regex":
|
||||||
try:
|
try:
|
||||||
found = re.search(destinationvalue, sourcevalue)
|
found = re.search(str(destinationvalue), str(sourcevalue))
|
||||||
except re.error as e:
|
except re.error as e:
|
||||||
print("[WARNING] Regex error in condition: %s" % e)
|
print("[WARNING] Regex error in condition (re.error): %s" % e)
|
||||||
|
return False
|
||||||
|
except Exception as e:
|
||||||
|
print("[WARNING] Regex error in condition (catchall): %s" % e)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if found == None:
|
if found == None:
|
||||||
|
|||||||
Reference in New Issue
Block a user