This commit is contained in:
Ali MJ Al-Nasrawy 2021-07-15 20:34:28 +03:00
parent a29a1a6dca
commit bab6c2d423
1 changed files with 2 additions and 2 deletions

View File

@ -110,10 +110,10 @@ impl ResourceDef {
ResourceDef {
tp,
pattern,
elements: Some(elements),
id: 0,
name: String::new(),
pattern: pattern.to_string(),
}
}
@ -385,7 +385,7 @@ impl ResourceDef {
return (tp, vec![PatternElement::Const(String::from(pattern))]);
}
let pattern_orig = pattern.to_owned();
let pattern_orig = pattern;
let mut elements = Vec::new();
let mut re = format!("{}^", REGEX_FLAGS);
let mut dyn_elements = 0;