Skip to content

Commit

Permalink
fix prefix string
Browse files Browse the repository at this point in the history
  • Loading branch information
urso committed Sep 2, 2016
1 parent 36c29bb commit 79a0120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/common/match/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func compile(r *syntax.Regexp) (Matcher, error) {
return Matcher{&substringMatcher{s, []byte(s)}}, nil

case isPrefixLiteral(r):
s := []byte(string(r.Sub[0].Rune))
s := []byte(string(r.Sub[1].Rune))
return Matcher{&prefixMatcher{s}}, nil

case isEmptyText(r):
Expand Down

0 comments on commit 79a0120

Please sign in to comment.