Skip to content

Commit 7cbc516

Browse files
authored
refactor: simplify regex a little (#154)
1 parent 512046b commit 7cbc516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lockfile/parse-gemfile-lock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (parser *gemfileLockfileParser) parseSource(line string) {
104104
}
105105

106106
func isNotIndented(line string) bool {
107-
re := regexp.MustCompile(`^[^\s]`)
107+
re := regexp.MustCompile(`^\S`)
108108

109109
return re.MatchString(line)
110110
}

0 commit comments

Comments
 (0)