Page MenuHomeDevCentral

D1879.id.diff
No OneTemporary

D1879.id.diff

diff --git a/src/registry.rs b/src/registry.rs
--- a/src/registry.rs
+++ b/src/registry.rs
@@ -140,7 +140,7 @@
pub fn is_valid_name(name: &str) -> bool {
lazy_static! {
- static ref RE: Regex = Regex::new("^/?[a-zA-Z0-9_-]+$").unwrap();
+ static ref RE: Regex = Regex::new("^[a-zA-Z0-9_-]+$").unwrap();
}
RE.is_match(name) && name.len() <= 30

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 14:10 (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260324
Default Alt Text
D1879.id.diff (402 B)

Event Timeline