mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Adjusted regex
This commit is contained in:
@@ -141,7 +141,7 @@ const parseQuery = (handler, tokens, pos, typeGraph) => {
|
||||
|
||||
//utils
|
||||
const checkAlphaNumeric = (str) => {
|
||||
if (!/^[a-z0-9]+$/i.test(str)) {
|
||||
if (!/^[_a-z][_a-z0-9]*$/i.test(str)) {
|
||||
throw 'Unexpected string ' + str;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user