fix: pretteir format uncheck.

This commit is contained in:
Rintim 2024-04-22 22:11:56 +08:00
parent 8a28a7f00d
commit 150c503ca1
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ export class LibInit {
let k = 0; let k = 0;
let result; let result;
//去除99个step的限制 //去除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; let insertStr;
if (k == 0) { if (k == 0) {
insertStr = `switch(step){case 0:`; insertStr = `switch(step){case 0:`;