forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing some semver strings in WIT
Specifically fix parsing intermediate `-` characters in pre-release versions and build metadata. Additionally fix alphabetic characters following numeric characters. Closes bytecodealliance#1692
- Loading branch information
1 parent
2197ec2
commit b9c9be4
Showing
3 changed files
with
127 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
package a:b@1.0.0 {} | ||
package a:b@1.0.1 {} | ||
package a:b@1.0.1-- {} | ||
package a:b@1.0.1-a+a {} | ||
package a:b@1.0.1-1+1 {} | ||
package a:b@1.0.1-1a+1a {} | ||
package a:b@1.0.0-11-a {} | ||
package a:b@1.0.0-a1.1-a {} | ||
package a:b@1.0.0-11ab {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"worlds": [], | ||
"interfaces": [], | ||
"types": [], | ||
"packages": [ | ||
{ | ||
"name": "a:b@1.0.0-11-a", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.0-11ab", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.0-a1.1-a", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.0", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.1-1+1", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.1--", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.1-1a+1a", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.1-a+a", | ||
"interfaces": {}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:b@1.0.1", | ||
"interfaces": {}, | ||
"worlds": {} | ||
} | ||
] | ||
} |