allow variable start with '$'
This commit is contained in:
1 parent
9d83317c36
commit
8a2b3f361b
1 file changed
+1
-1
+1
-1
@@ -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) => {
|
||||||
|
|||||||
Reference in new issue
Block a user