aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-11-02 02:40:28 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-11-02 02:40:28 +0000
commitba1cadbfb5d8eeb7535a3d22b3dbfb848512f986 (patch)
treed6d5b2d8bced46e0ef3f38936fb6462a417de0eb
parent009b53c4a958fd751686ea185b006fa1a383b703 (diff)
downloadpeanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.tar.gz
peanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.tar.bz2
peanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.zip
fix NCName parser
-rw-r--r--src/xml/parsers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/parsers.rs b/src/xml/parsers.rs
index 232ebd0..8bd07a8 100644
--- a/src/xml/parsers.rs
+++ b/src/xml/parsers.rs
@@ -67,7 +67,7 @@ impl<'s> Parser<'s, NCName<'s>> for NCName<'s> {
map(
recognize(pair(
recognize(NameStartChar::parse).and_then(satisfy(|c| c != ':')),
- many_till(NameChar::parse, peek(char(':'))),
+ many0(recognize(NameChar::parse).and_then(satisfy(|c| c != ':'))),
)),
|nc_name| NCName(nc_name),
)(input)