We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ea48b1 + 38598ef commit 2e386faCopy full SHA for 2e386fa
expect_payload/ppx_expect_payload.ml
@@ -59,7 +59,7 @@ let make ~kind payload ~(extension_id_loc:Location.t) =
59
let rec first_line i =
60
match get i with
61
| None -> ()
62
- | Some (' ' | '\t') -> first_line (i + 1)
+ | Some (' ' | '\t' | '\r') -> first_line (i + 1)
63
| Some '\n' -> ()
64
| Some _ -> first_line_has_stuff (i + 1)
65
and first_line_has_stuff i =
@@ -70,7 +70,7 @@ let make ~kind payload ~(extension_id_loc:Location.t) =
70
and rest_must_be_empty i =
71
72
73
- | Some (' ' | '\t' | '\n') ->
+ | Some (' ' | '\t' | '\r' | '\n') ->
74
rest_must_be_empty (i + 1)
75
| Some _ ->
76
Location.raise_errorf ~loc:body_loc
0 commit comments