cob: allow hyphens in `TypeName`
Also make sure to only allow ASCII characters and add some tests.
1 file changed
+20
-3
352c29c2
→
cf023f75
modified crates/radicle-cob/src/type_name.rs
@@ -7,8 +7,8 @@ use serde::{Deserialize, Serialize};
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -47,7 +47,18 @@ impl FromStr for TypeName {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -77,7 +88,13 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
|
|
|