allow forward slash in strings for if statements
This commit is contained in:
@ -140,12 +140,12 @@ clarity, you must enclose the entire expression in quotes.
|
||||
|
||||
An expression is built out of numbers (which start with a digit or
|
||||
period or minus sign) or strings (which start with a letter and can
|
||||
contain alphanumeric characters or underscores):
|
||||
contain alphanumeric characters, underscores, or forward slashes):
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
0.2, 100, 1.0e20, -15.4, etc
|
||||
InP, myString, a123, ab_23_cd, etc
|
||||
0.2, 100, 1.0e20, -15.4, ...
|
||||
InP, myString, a123, ab_23_cd, lj/cut, ...
|
||||
|
||||
and Boolean operators:
|
||||
|
||||
|
||||
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user