chiark / gitweb /
udevadm: test - remove --force option
[elogind.git] / extras / rule_generator / rule_generator.functions
index aaf66a6fa05dc4b514277067bf4d1d1f24043439..b972091615d424c56149dc6944055b64c44665b4 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) \