File tree Expand file tree Collapse file tree
crates/wasmparser/src/validator
snapshots/local/component-model/naming.wast Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -825,7 +825,10 @@ impl<'a> ComponentNameParser<'a> {
825825
826826 fn take_lowercase_kebab ( & mut self ) -> Result < & ' a KebabStr > {
827827 let kebab = self . take_kebab ( ) ?;
828- if let Some ( c) = kebab. chars ( ) . find ( |c| * c != '-' && !c. is_lowercase ( ) ) {
828+ if let Some ( c) = kebab
829+ . chars ( )
830+ . find ( |c| c. is_alphabetic ( ) && !c. is_lowercase ( ) )
831+ {
829832 bail ! (
830833 self . offset,
831834 "character `{c}` is not lowercase in package name/namespace"
Original file line number Diff line number Diff line change 112112)
113113(component
114114 (instance (import " a:b/c" ))
115+ (instance (import " a1:b1/c" ))
115116)
Original file line number Diff line number Diff line change 33 (instance)
44 )
55 (import "a:b/c" (instance (;0;) (type 0)))
6+ (type (;1;)
7+ (instance)
8+ )
9+ (import "a1:b1/c" (instance (;1;) (type 1)))
610)
You can’t perform that action at this time.
0 commit comments