Permalink
Browse files

Use \A and \z in robot regexp

  • Loading branch information...
1 parent f5437e9 commit 6ad37e9e56b6384cd819390e0d41968f805e1240 @dimko dimko committed Feb 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/split/configuration.rb
@@ -138,7 +138,7 @@ def normalize_alternatives(alternatives)
end
def initialize
- @robot_regex = /\b(#{BOTS.keys.join('|')})\b|^\W*$/i
+ @robot_regex = /\b(#{BOTS.keys.join('|')})\b|\A\W*\z/i
@ignore_ip_addresses = []
@db_failover = false
@db_failover_on_db_error = proc{|error|} # e.g. use Rails logger here

0 comments on commit 6ad37e9

Please sign in to comment.