lib/junoser/ruler.rb in junoser-0.3.4 vs lib/junoser/ruler.rb in junoser-0.3.5

- old
+ new

@@ -151,9 +151,15 @@ str.gsub!(/^(\s*)"location" arg,\s*"contact" arg,/) do format(['"location" (quote | arg),', '"contact" (quote | arg),'], $1) end + str.gsub!(/^(\s*)"as-path" \(\s*c\(\s*"path" arg/) do + format(['"as-path" (', + ' c(', + ' "path" (quote | arg)'], $1) + end + str end def format(str, offset=OFFSET) case str