Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 4151f62

Browse files
committed
Fixed bug in regex where I had put wildcard instead of [^\s]
1 parent 4785157 commit 4151f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/general.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const fixIndentation = str => {
3333
}
3434

3535
const nextNonWhitespaceChar = text => {
36-
const matches = text.match(/^\s*(.)/)
36+
const matches = text.match(/^\s*([^\s])/)
3737
if (matches) {
3838
return matches[1]
3939
} else {

0 commit comments

Comments
 (0)