aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)