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 0177c42 commit a85fb6fCopy full SHA for a85fb6f
provider/icu4x-datagen/src/main.rs
@@ -76,7 +76,9 @@ impl FromStr for Filter {
76
let regex = regex.strip_prefix('/').ok_or(FilterError::NoOpeningSlash)?;
77
let regex = regex.strip_suffix('/').ok_or(FilterError::NoClosingSlash)?;
78
79
- let regex = Regex::new(regex)?;
+ // add an implicit `^(?:)$` around the regex
80
+ let regex = format!("^(?:{})$", regex);
81
+ let regex = Regex::new(®ex)?;
82
83
Ok(Filter {
84
domain: domain.to_owned(),
0 commit comments