fix regex

This commit is contained in:
Konstantin Haase 2012-12-06 15:20:23 +01:00
parent 3b84b83699
commit cd9d84783d

View File

@ -253,7 +253,7 @@ class Travis::Api::App
def target_ok?(target_origin)
uri = Addressable::URI.parse(target_origin)
if uri.host =~ /\A(.+\.)?travis-ci\.(com|org)\E/
if uri.host =~ /\A(.+\.)?travis-ci\.(com|org)\Z/
uri.scheme == 'https'
elsif uri == 'localhost' or uri == '127.0.0.1'
uri.port > 1023