fix NCName parser
This commit is contained in:
parent
009b53c4a9
commit
ba1cadbfb5
|
@ -67,7 +67,7 @@ impl<'s> Parser<'s, NCName<'s>> for NCName<'s> {
|
||||||
map(
|
map(
|
||||||
recognize(pair(
|
recognize(pair(
|
||||||
recognize(NameStartChar::parse).and_then(satisfy(|c| c != ':')),
|
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),
|
|nc_name| NCName(nc_name),
|
||||||
)(input)
|
)(input)
|
||||||
|
|
Loading…
Reference in New Issue