+4
-4
lines changedFilter options
+4
-4
lines changed Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ pub fn commit<'a, E: ParserError<&'a [u8]> + AddContext<&'a [u8], StrContext>>(
44
44
.context(StrContext::Expected("author <signature>".into())),
45
45
(|i: &mut _| parse::header_field(i, b"committer", parse::signature))
46
46
.context(StrContext::Expected("committer <signature>".into())),
47
-
opt(|i: &mut _| parse::header_field(i, b"encoding", take_till(1.., NL)))
47
+
opt(|i: &mut _| parse::header_field(i, b"encoding", take_till(0.., NL)))
48
48
.context(StrContext::Expected("encoding <encoding>".into())),
49
49
repeat(
50
50
0..,
Original file line number Diff line number Diff line change
@@ -214,7 +214,7 @@ impl<'a> CommitRefIter<'a> {
214
214
}
215
215
}
216
216
Encoding => {
217
-
let encoding = opt(|i: &mut _| parse::header_field(i, b"encoding", take_till(1.., NL)))
217
+
let encoding = opt(|i: &mut _| parse::header_field(i, b"encoding", take_till(0.., NL)))
218
218
.context(StrContext::Expected("encoding <encoding>".into()))
219
219
.parse_next(input)?;
220
220
*state = State::ExtraHeaders;
@@ -227,7 +227,7 @@ impl<'a> CommitRefIter<'a> {
227
227
let extra_header = opt(alt((
228
228
|i: &mut _| parse::any_header_field_multi_line(i).map(|(k, o)| (k.as_bstr(), Cow::Owned(o))),
229
229
|i: &mut _| {
230
-
parse::any_header_field(i, take_till(1.., NL))
230
+
parse::any_header_field(i, take_till(0.., NL))
231
231
.map(|(k, o)| (k.as_bstr(), Cow::Borrowed(o.as_bstr())))
232
232
},
233
233
)))
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ pub(crate) fn any_header_field_multi_line<'a, E: ParserError<&'a [u8]> + AddCont
18
18
(
19
19
terminated(take_till(1.., SPACE_OR_NL), SPACE),
20
20
(
21
-
take_till(1.., NL),
21
+
take_till(0.., NL),
22
22
NL,
23
23
repeat(1.., terminated((SPACE, take_until(0.., NL)), NL)).map(|()| ()),
24
24
)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4