mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Storage: fix regex describing compliant names
This commit is contained in:
committed by
LeaNumworks
parent
0bcf3ec65c
commit
eadc493f48
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user