Improve model name detection:

Token cannot be a model name if it contains '='
This commit is contained in:
Holger Vogt 2019-08-11 16:21:55 +02:00
parent fe64d10c3f
commit f4645cf6b1
1 changed files with 3 additions and 0 deletions

View File

@ -1892,6 +1892,9 @@ static int is_a_modelname(const char *s)
{
char *st;
double testval;
/* token containing '=' is not a model name */
if (strchr(s, '='))
return FALSE;
/* first character of model name is character from alphabet */
if (isalpha_c(s[0]))
return TRUE;