fix: fix allowing multiple selectors in goosebench (#1814)

This commit is contained in:
Alice Hau
2025-03-23 22:29:16 -04:00
committed by GitHub
parent f82983c6fa
commit d47ab3e31b

View File

@@ -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
// remove one level of nesting at a time and check exact match
let nesting_pattern = Regex::new(r":\w+$").unwrap();
let mut level_up = eval.to_string();
for selector in selectors {
let mut level_up = eval.to_string();
while !level_up.is_empty() {
if level_up == *selector {
return true;