Skip to content

Commit

Permalink
* Fixed bug with multiple compare operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulover committed Nov 13, 2020
1 parent 0bf9624 commit 7ca22e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Eval.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ Eval($x, _CustomVars := "", _Init := true)
$z[$i] := RegExReplace($z[$i], "&_String\d+_&", """$0""")

; Add concatenate operator after strings where necessary
While (RegExMatch($z[$i], "(""&_String\d+_&""\s+)([^\d\.,\s:\?])"))
$z[$i] := RegExReplace($z[$i], "(""&_String\d+_&""\s+)([^\d\.,\s:\?])", "$1. $2")
While (RegExMatch($z[$i], "(""&_String\d+_&""\s+)([^\d\.,\s:\+-=*/&|^><\?])"))
$z[$i] := RegExReplace($z[$i], "(""&_String\d+_&""\s+)([^\d\.,\s:\+-=*/&|^><\?])", "$1. $2")

; Remove remaining parenthesis to allow math operations
While (RegExMatch($z[$i], "\(([^()]++|(?R))*\)"))
Expand Down

0 comments on commit 7ca22e9

Please sign in to comment.