Skip to content

Commit

Permalink
This patch should close weppos#15
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Vollero authored and Francesco Vollero committed Mar 5, 2012
1 parent 0c05f9e commit eac6d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/public_suffix/list.rb
Expand Up @@ -181,6 +181,7 @@ def clear
#
# @return [PublicSuffix::Rule::*, nil]
def find(domain)
return if domain.include?("://")
rules = select(domain)
rules.select { |r| r.type == :exception }.first ||
rules.inject { |t,r| t.length > r.length ? t : r }
Expand Down

0 comments on commit eac6d8c

Please sign in to comment.