fix NCName parser

This commit is contained in:
cel 🌸 2024-11-02 02:40:28 +00:00
parent 009b53c4a9
commit ba1cadbfb5
1 changed files with 1 additions and 1 deletions

View File

@ -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)