Fixed regex parsing for action variables

This commit is contained in:
frikky
2020-06-19 20:42:34 +02:00
parent 1efad4547a
commit 4a6595e56a
2 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -415,7 +415,7 @@ class AppBase:
def parse_params(action, fullexecution, parameter):
# Skip if it starts with $?
jsonparsevalue = "$."
match = ".*([$]{1}([a-zA-Z0-9()# _-]+\.?){1,})"
match = ".*([$]{1}([a-zA-Z0-9# _-]+\.?){1,})"
# Regex to find all the things
if parameter["variant"] == "STATIC_VALUE":
@@ -424,6 +424,7 @@ class AppBase:
#self.logger.debug(f"\n\nHandle static data with JSON: {data}\n\n")
#self.logger.info("STATIC PARSED: %s" % actualitem)
if len(actualitem) > 0:
print("ACTUAL: %s", actualitem)
for replace in actualitem:
try:
to_be_replaced = replace[0]