Fixed . in effect stat targets breaking entire sheet

This commit is contained in:
Stefan Zermatten
2022-02-22 17:30:45 +02:00
parent ee2b400ee6
commit 4c6d70b084
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// Must contain a letter, and be made of word characters only
const VARIABLE_NAME_REGEX = /^\w*[a-z]\w*$/i;
const VARIABLE_NAME_REGEX = /^[a-z][\w-]*$/i;
export default VARIABLE_NAME_REGEX;