lib/junoser/ruler.rb in junoser-0.2.10 vs lib/junoser/ruler.rb in junoser-0.2.11

- old
+ new

@@ -46,9 +46,10 @@ str.gsub! '"equal-literal"', '"="' str.gsub! '"plus-literal"', '"+"' str.gsub! '"minus-literal"', '"-"' str.gsub!(/\((.*) \| "name"\)/) { "(#$1 | arg)" } + str.gsub!(/\("name" \| (.*)\)/) { "(arg | #$1)" } str.gsub! '"vlan" ("id-name" | "all")', '"vlan" ("all" | arg)' str.gsub! '"vlan" ("all" | "vlan-name")', '"vlan" ("all" | arg)' str.gsub!(/("ssh-\S+") arg/) { "#$1 (quote | arg)" } str.gsub! '"description" arg', '"description" (quote | arg)' str.gsub! '"as-path-prepend" arg', '"as-path-prepend" (quote | arg)'