Skip to content

Commit ddfcd5f

Browse files
committed
Fix alias attribute validation
1 parent ffb84d0 commit ddfcd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<'src> Attribute<'src> {
9898
};
9999

100100
let alias = token.lexeme();
101-
let valid_alias = alias.chars().all(|c| c.is_ascii_alphabetic() || c == '_');
101+
let valid_alias = alias.chars().all(|c| c.is_ascii_alphanumeric() || c == '_');
102102

103103
if alias.is_empty() || !valid_alias {
104104
return Err(token.error(CompileErrorKind::InvalidAliasName {

0 commit comments

Comments
 (0)