allow variable start with '$'

This commit is contained in:
codetypes committed 2025-04-14 11:36:09 +08:00
1 parent 9d83317c36
commit 8a2b3f361b
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ export const isNewVersion = (version: string) => {
}; };
export const isValidVariableName = (name: string) => { export const isValidVariableName = (name: string) => {
return /^[a-zA-Z_]/.test(name); return /^[a-zA-Z_$]*$/.test(name);
}; };
export const isSubtreeRoot = (data: NodeData) => { export const isSubtreeRoot = (data: NodeData) => {