mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
compat 4.03
This commit is contained in:
parent
84173382db
commit
d985019fe1
1 changed files with 3 additions and 3 deletions
|
|
@ -294,7 +294,7 @@ eq
|
|||
(Ok (("!this is the text between!", "LOL"), " and a lot of other stuff"))
|
||||
(parse_string
|
||||
(string "COUCOU"
|
||||
*> let* slice, x = take_until_success (string "LOL") in
|
||||
let+ rest = take_if (fun _ -> true) <* eoi in
|
||||
(Slice.to_string slice, x), Slice.to_string rest)
|
||||
*> ( take_until_success (string "LOL") >>= fun (slice, x) ->
|
||||
take_if (fun _ -> true) <* eoi >|= fun rest ->
|
||||
(Slice.to_string slice, x), Slice.to_string rest ))
|
||||
"COUCOU!this is the text between!LOL and a lot of other stuff")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue