We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b37a63 commit 20e76faCopy full SHA for 20e76fa
packages/webgal/src/Core/gameScripts/setVar.ts
@@ -39,7 +39,7 @@ export const setVar = (sentence: ISentence): IPerform => {
39
// 将变量替换为变量的值,然后合成表达式字符串
40
const valExp2 = valExpArr
41
.map((e) => {
42
- if (!e.trim().match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)) {
+ if (!e.trim().match(/^[a-zA-Z_$][a-zA-Z0-9_.]*$/)) {
43
// 检查是否是变量名,不是就返回本身
44
return e;
45
}
0 commit comments