diff options
author | 2024-11-02 02:40:28 +0000 | |
---|---|---|
committer | 2024-11-02 02:40:28 +0000 | |
commit | ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986 (patch) | |
tree | d6d5b2d8bced46e0ef3f38936fb6462a417de0eb | |
parent | 009b53c4a958fd751686ea185b006fa1a383b703 (diff) | |
download | peanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.tar.gz peanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.tar.bz2 peanuts-ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986.zip |
fix NCName parser
-rw-r--r-- | src/xml/parsers.rs | 2 |
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) |