Page MenuHomeDevCentral

D1879.diff
No OneTemporary

D1879.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
Mon, Nov 25, 11:59 (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260324
Default Alt Text
D1879.diff (402 B)

Event Timeline