Skip to content

Commit 0a10230

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/experimentalOnlineParser/onlineParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class OnlineParser {
234234
}
235235

236236
indentation(): number {
237-
const match = this._lexer.source.body.match(/\s*/);
237+
const match = /\s*/.exec(this._lexer.source.body);
238238
let indent = 0;
239239

240240
if (match && match.length === 0) {

0 commit comments

Comments
 (0)