Skip to content

Commit

Permalink
Simplify regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 22, 2019
1 parent 81347c3 commit 1e9f39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/print/indent.js
Expand Up @@ -13,7 +13,7 @@ const getIndent = function(nodeString) {
return indent
}

const INDENT_REGEXP = /^( )*/gmu
const INDENT_REGEXP = /^ */gmu

const getSpacesLength = function(spaces) {
return spaces.length
Expand Down

0 comments on commit 1e9f39a

Please sign in to comment.