Skip to content

Commit

Permalink
relax whitespace in regex
Browse files Browse the repository at this point in the history
Co-authored-by: Arjun Sreedharan <[email protected]>
  • Loading branch information
Frankie G-J and arjun024 committed Apr 1, 2021
1 parent 66ef71a commit e6c56c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/configure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func main() {

func getIncludedConfs(confText string, confDir string) ([]string, error) {
includeFiles := []string{}
includeRe := regexp.MustCompile(`include (\S*.conf);`)
includeRe := regexp.MustCompile(`include\s+(\S*.conf);`)
matches := includeRe.FindAllStringSubmatch(confText, -1)
for _, v := range matches {
if len(v) == 2 {
Expand Down

0 comments on commit e6c56c7

Please sign in to comment.