-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 Fix parameter expression parsing (#843)
* 🩹♻️🧪 Fixed Parameter expression transformation Solved an issue with partially matching strings in the evaluation of parameters relations would cause issues. Example: The expression: "100 - $inputs1.s1 - $inputs1.s3 - $inputs1.s8 - $inputs1.s12" should have been transformed to: "100 - group.get('inputs1.s1').value - group.get('inputs1.s3').value - group.get('inputs1.s8').value - group.get('inputs1.s12').value" but instead was transformed to: "100 - group.get('inputs1.s1').value - group.get('inputs1.s3').value - group.get('inputs1.s8').value - group.get('inputs1.s1').value2" Since "inputs1.s1" partially matches "inputs1.s12". Regex compiling moved out of the class, so it only gets executed when the module is loaded. * 👌 Added missing space in exception text of update_parameter_expression
- Loading branch information
Showing
3 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters