Skip to content

Commit

Permalink
refactor: simplify regex a little (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 15, 2022
1 parent 512046b commit 7cbc516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lockfile/parse-gemfile-lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (parser *gemfileLockfileParser) parseSource(line string) {
}

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

return re.MatchString(line)
}
Expand Down

0 comments on commit 7cbc516

Please sign in to comment.