Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
[GH-14] main code - it should be allowed that keys contain digits
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Nov 11, 2018
1 parent a2990fb commit dfef496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func scanFile(file string, key string) string {
}

func value(keyValue string) string {
re := regexp.MustCompile("[A-Z-a-z-_]+: (.*)$")
re := regexp.MustCompile("[0-9-A-Z-a-z-_]+: (.*)$")
match := re.FindStringSubmatch(keyValue)

if len(match) == 0 {
Expand Down

0 comments on commit dfef496

Please sign in to comment.