Skip to content

Commit

Permalink
Extra '?' in regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
amaslenn committed Apr 15, 2013
1 parent a26c94c commit 30c0283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/domain_name.filter.rb
Expand Up @@ -4,7 +4,7 @@ module DomainNameFilter

# Return the url's domain name
def domain_name(url)
return url.sub(%r{([a-z]+?://)?([^/]*)(/.*$)?}i, '\\2')
return url.sub(%r{([a-z]+://)?([^/]*)(/.*$)?}i, '\\2')
end

end
Expand Down

0 comments on commit 30c0283

Please sign in to comment.