diff --git a/build/syntax_mapping.rs b/build/syntax_mapping.rs index c8882301..125efd25 100644 --- a/build/syntax_mapping.rs +++ b/build/syntax_mapping.rs @@ -65,7 +65,7 @@ impl FromStr for Matcher { type Err = anyhow::Error; fn from_str(s: &str) -> Result { use MatcherSegment as Seg; - static VAR_REGEX: Lazy = Lazy::new(|| Regex::new(r"\$\{([\w\d_\-]+)\}").unwrap()); + static VAR_REGEX: Lazy = Lazy::new(|| Regex::new(r"\$\{([\w\d_]+)\}").unwrap()); let mut segments = vec![]; let mut text_start = 0;