We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.
1 parent 8262b29 commit ddeedb9Copy full SHA for ddeedb9
src/models/krate.rs
@@ -225,7 +225,7 @@ impl Crate {
225
!name.is_empty()
226
&& name
227
.chars()
228
- .all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '-' || c == '+')
+ .all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '-' || c == '+' || c == '.')
229
}
230
231
/// Validates the prefix in front of the slash: `features = ["THIS/feature"]`.
@@ -531,5 +531,7 @@ mod tests {
531
assert!(!Crate::valid_feature("dep:foo?/bar"));
532
assert!(!Crate::valid_feature("foo/?bar"));
533
assert!(!Crate::valid_feature("foo?bar"));
534
+ assert!(Crate::valid_feature("bar.web"));
535
+ assert!(Crate::valid_feature("foo/bar.web"));
536
537
0 commit comments