chiark / gitweb /
rule_generator: fix netif NAME= value extraction regex
[elogind.git] / extras / rule_generator / rule_generator.functions
index aaf66a6..b972091 100644 (file)
@@ -92,8 +92,7 @@ find_all_rules() {
        local linkre="$2"
        local match="$3"
 
-       local search='[[:space:],]'"$key"'"('"$linkre"')"[[:space:]]*(,.*|\\|)$'
-
+       local search='.*[[:space:],]'"$key"'"('"$linkre"')".*'
        echo $(sed -n -r -e 's/^#.*//' -e "${match}s/${search}/\1/p" \
                $RO_RULES_FILE \
                $([ -e $RULES_FILE ] && echo $RULES_FILE) \