Skip to content

Commit

Permalink
Dash is acting as operator instead as identifier
Browse files Browse the repository at this point in the history
Signed-off-by: Vaishnavi Vejella <vvejella@amazon.com>
  • Loading branch information
vvejell1 committed Oct 13, 2022
1 parent 1e6523f commit d818a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func digitVal(ch rune) int {
}

func isFieldRune(r rune) bool {
return (r == '_' || isAlphaRune(r) || isDigitRune(r))
return (r == '-' || r == '_' || isAlphaRune(r) || isDigitRune(r))
}

func isAlphaRune(r rune) bool {
Expand Down

0 comments on commit d818a91

Please sign in to comment.