Skip to content

Commit

Permalink
consume end of input
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Nov 4, 2024
1 parent df099b3 commit 55657c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_parser.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
open Angstrom

let parse_one rule config_str =
match parse_string ~consume:Consume.All rule config_str with
match parse_string ~consume:Consume.All (rule <* end_of_input) config_str with
| Ok _ as o -> o
| Error msg -> Error (`Msg (Fmt.str "Parse error in %S: %s" config_str msg))

Expand Down

0 comments on commit 55657c9

Please sign in to comment.