allow forward slash in strings for if statements

This commit is contained in:
Axel Kohlmeyer
2020-10-06 18:44:26 -04:00
parent 15f9987c32
commit f0f933a711
2 changed files with 4 additions and 4 deletions

View File

@ -4902,7 +4902,7 @@ double Variable::evaluate_boolean(char *str)
// set I to end of string
int istart = i++;
while (isalnum(str[i]) || str[i] == '_') i++;
while (isalnum(str[i]) || (str[i] == '_') || (str[i] == '/')) i++;
int n = i - istart + 1;
argstack[nargstack].str = new char[n];