don't allow leading digits in group names

This commit is contained in:
David Rose 2001-06-27 19:26:58 +00:00
parent 2c275a92fa
commit a4c59b67e8

View File

@ -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;
}