[ion] Storage: fix regex describing compliant names

This commit is contained in:
Émilie Feral
2018-09-21 16:17:39 +02:00
committed by LeaNumworks
parent 0bcf3ec65c
commit eadc493f48
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ const char * Script::readContent() const {
}
bool Script::nameCompliant(const char * name) {
/* The name format is [a-z0-9_.]* */
/* The name format is [a-z0-9_\.]+ */
const char * currentChar = name;
while (*currentChar != 0) {
if ((*currentChar >= 'a' && *currentChar <= 'z') || *currentChar == '_' || (*currentChar >= '0' && *currentChar <= '9') || *currentChar == '.') {
@@ -38,4 +38,4 @@ bool Script::nameCompliant(const char * name) {
return name != currentChar;
}
}
}