compat 4.03

This commit is contained in:
Simon Cruanes 2023-04-07 12:27:55 -04:00
parent 84173382db
commit d985019fe1
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -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")