diff --git a/src/controller_match_rule.cpp b/src/controller_match_rule.cpp index 25b6344..589ec51 100644 --- a/src/controller_match_rule.cpp +++ b/src/controller_match_rule.cpp @@ -153,17 +153,6 @@ ControllerMatchRule::from_string(const std::string& lhs, return ControllerMatchRulePtr(new ControllerMatchRuleProperty("ID_VENDOR_ID", args[0])); } } - else if (lhs == "property") - { - if (args.size() != 1) - { - raise_exception(std::runtime_error, "property two arguments"); - } - else - { - return ControllerMatchRulePtr(new ControllerMatchRuleProperty(args[0], args[1])); - } - } else if (lhs == "product") { if (args.size() != 1) @@ -175,6 +164,17 @@ ControllerMatchRule::from_string(const std::string& lhs, return ControllerMatchRulePtr(new ControllerMatchRuleProperty("ID_MODEL_ID", args[0])); } } + else if (lhs == "property") + { + if (args.size() != 2) + { + raise_exception(std::runtime_error, "property two arguments"); + } + else + { + return ControllerMatchRulePtr(new ControllerMatchRuleProperty(args[0], args[1])); + } + } else if (lhs == "usbpath") { if (args.size() != 2)