fix: fix allowing multiple selectors in goosebench (#1814)
This commit is contained in:
@@ -83,8 +83,8 @@ fn matches_any_selectors(eval: &str, selectors: &Vec<String>) -> bool {
|
|||||||
// selectors must prefix match exactly, no matching half-way in a word
|
// selectors must prefix match exactly, no matching half-way in a word
|
||||||
// remove one level of nesting at a time and check exact match
|
// remove one level of nesting at a time and check exact match
|
||||||
let nesting_pattern = Regex::new(r":\w+$").unwrap();
|
let nesting_pattern = Regex::new(r":\w+$").unwrap();
|
||||||
let mut level_up = eval.to_string();
|
|
||||||
for selector in selectors {
|
for selector in selectors {
|
||||||
|
let mut level_up = eval.to_string();
|
||||||
while !level_up.is_empty() {
|
while !level_up.is_empty() {
|
||||||
if level_up == *selector {
|
if level_up == *selector {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user