diff --git a/noname/library/init/index.js b/noname/library/init/index.js index 380e5018a..61f512b81 100644 --- a/noname/library/init/index.js +++ b/noname/library/init/index.js @@ -724,7 +724,7 @@ export class LibInit { let k = 0; let result; //去除99个step的限制 - while ((result = str.slice(skip).match(new RegExp(`['"]step ${k}['"]`))) != null) { + while ((result = str.slice(skip).match(new RegExp(`\\(?['"]step ${k}['"]\\)?;?`))) != null) { let insertStr; if (k == 0) { insertStr = `switch(step){case 0:`;