Skip to content

Commit

Permalink
refactor: use regexp-exec (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Feb 19, 2021
1 parent 4e314be commit 0a10230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/experimentalOnlineParser/onlineParser.js
Expand Up @@ -234,7 +234,7 @@ export class OnlineParser {
}

indentation(): number {
const match = this._lexer.source.body.match(/\s*/);
const match = /\s*/.exec(this._lexer.source.body);
let indent = 0;

if (match && match.length === 0) {
Expand Down

0 comments on commit 0a10230

Please sign in to comment.