Skip to content

Commit

Permalink
Allow _ and - in Filebeat module name hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pérez-Aradros Herce authored and ph committed May 17, 2018
1 parent 0c54583 commit c055894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filebeat/autodiscover/builder/hints/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
)

// validModuleNames to sanitize user input
var validModuleNames = regexp.MustCompile("[^a-zA-Z0-9]+")
var validModuleNames = regexp.MustCompile("[^a-zA-Z0-9\\_\\-]+")

type logHints struct {
Key string
Expand Down

0 comments on commit c055894

Please sign in to comment.