Skip to content
Browse files

fix id edge case

  • Loading branch information...
1 parent 1eb9691 commit 14cd613bb0a4c4bbd9f661ea576cd3c8743fbdfd Kyle Maxwell committed Oct 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gizzard/commands.rb
View
2 lib/gizzard/commands.rb
@@ -422,7 +422,7 @@ def parse(obj, id = nil, depth = 0, sub = true)
host, prefix = obj.split("/")
host = "db" if host != "localhost" && sub
id ||= prefix[/\w+ward_\d+_\d+/]
- prefix = (" " * depth) + host + "/" + (sub ? prefix.sub(id, "[ID]") : prefix)
+ prefix = (" " * depth) + host + "/" + ((sub && id) ? prefix.sub(id, "[ID]") : prefix)
[id, prefix]
when Array
obj.map do |e|

0 comments on commit 14cd613

Please sign in to comment.
Something went wrong with that request. Please try again.