don't allow leading digits in group names
This commit is contained in:
parent
2c275a92fa
commit
a4c59b67e8
|
|
@ -437,6 +437,12 @@ make_nice_name(const string &str) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!str.empty() && isdigit(str[0])) {
|
||||
// If the name begins with a digit, we must make it begin with
|
||||
// something else, like for instance an underscore.
|
||||
result = '_' + result;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue