From ba1cadbfb5d8eeb7535a3d22b3dbfb848512f986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cel=20=F0=9F=8C=B8?= Date: Sat, 2 Nov 2024 02:40:28 +0000 Subject: [PATCH] fix NCName parser --- src/xml/parsers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)