Skip to content

Commit d12869a

Browse files
authored
fix: text::ascii::ident won't accept numbers (#732)
1 parent d63e285 commit d12869a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ pub mod ascii {
540540
any()
541541
.try_map(|c: I::Token, span| {
542542
if c.to_ascii()
543-
.map_or(false, |i| i.is_ascii_alphabetic() || i == b'_')
543+
.map_or(false, |i| i.is_ascii_alphanumeric() || i == b'_')
544544
{
545545
Ok(())
546546
} else {

0 commit comments

Comments
 (0)