Skip to content

Commit

Permalink
Fix bug 194, Parameter in dotdict expressions: position dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
namsonx committed Jan 23, 2024
1 parent 70e429f commit 38baaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JsonPreprocessor/CJsonPreprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def __recursiveNestedHandling(sInputStr: str, lNestedParam: list) -> str:
self.lNestedParams.append(nestedParam)
newInputStr = newInputStr + item if tmpItem==items[len(items)-1] else newInputStr + item + ","
sInputStr = newInputStr
elif re.search("\${\s*}", sInputStr) or re.search("\${.+}\.", sInputStr) \
elif re.search("\${\s*}", sInputStr) \
or (nestedKey and (sInputStr.count("{") != sInputStr.count("}") or sInputStr.count("[") != sInputStr.count("]"))):
self.__reset(bCleanGlobalVars=True)
raise Exception(f"Invalid parameter format: {sInputStr}")
Expand Down

0 comments on commit 38baaad

Please sign in to comment.