Fix bug in checkDefinedNames

This commit is contained in:
Matthias Endler 2023-09-05 13:43:22 +02:00 committed by xuri
parent ae64bcaabe
commit a0a7d5cdbb
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ func checkDefinedName(name string) error {
if unicode.IsLetter(c) {
continue
}
if i > 0 && unicode.IsDigit(c) {
if i > 0 && (unicode.IsDigit(c) || c == '.') {
continue
}
return newInvalidNameError(name)