Skip to content

Commit a83494d

Browse files
committed
Fix matchAll
1 parent eed8986 commit a83494d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/codeUtil.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ export class CodeUtil {
5959

6060
const regs = [];
6161
let temp: RegExpExecArray | null;
62-
while (temp) {
62+
while ((temp = regex.exec(text))) {
6363
regs.push(temp);
64-
temp = regex.exec(text);
6564
}
6665

6766
return regs;

0 commit comments

Comments
 (0)