ruby-amqp/hot_bunnies — comment on commit c317e65f33b72c29dc10a28e69c282beec2d662a
File: lib/hot_bunnies/exchange.rb line 29
By iconara:

I wouldn't have mentioned the regex if it wasn't for the `# predefined?` comment, so it's not a big deal, although I think that almost every time a regex is used you can write it more clearly, and more performant without.

I think the ideal expression would be `@name.empty? || @name.start_with?('amq.')` (although it annoys me to no end that the method isn't called `starts_with?`).