Skip to content

Commit

Permalink
support . in field names
Browse files Browse the repository at this point in the history
  • Loading branch information
skpy committed May 22, 2024
1 parent 4e5ae04 commit 817e225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fielder.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var nouns = []string{
"watch", "wheel", "whip", "whistle", "window", "wing", "wire", "worm",
}

var constpat = regexp.MustCompile(`^([a-zA-Z0-9_]+)=([^/].*)$`)
var constpat = regexp.MustCompile(`^([a-zA-Z0-9_.]+)=([^/].*)$`)
var genpat = regexp.MustCompile(`^((?:[0-9]+\.)?[a-zA-Z0-9_]+)=/([ibfsu][awxrgqt]?)([0-9.-]+)?(,[0-9.-]+)?$`)
var keypat = regexp.MustCompile(`^([0-9]+)\.(.*$)`)

Expand Down

0 comments on commit 817e225

Please sign in to comment.