fix target_ok? regexp
This commit is contained in:
parent
c9e415b00f
commit
c2e06293a0
|
@ -40,7 +40,7 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/travis-ci/travis-core.git
|
remote: git://github.com/travis-ci/travis-core.git
|
||||||
revision: fedf82724c26f4f868d6d9a9d7f7568aeb663edb
|
revision: 6c02e7a1ddddc73054bd7eb351c53ce8523d7cb1
|
||||||
branch: sf-travis-api
|
branch: sf-travis-api
|
||||||
specs:
|
specs:
|
||||||
travis-core (0.0.1)
|
travis-core (0.0.1)
|
||||||
|
|
|
@ -224,7 +224,7 @@ class Travis::Api::App
|
||||||
def target_ok?(target_origin)
|
def target_ok?(target_origin)
|
||||||
target_origin =~ %r{
|
target_origin =~ %r{
|
||||||
^ http:// (localhost|127\.0\.0\.1)(:\d+)? $ |
|
^ http:// (localhost|127\.0\.0\.1)(:\d+)? $ |
|
||||||
^ https:// ([\w-_]+\.)?travis-ci\.(org|com) $
|
^ https:// ([\w\-_]+\.)?travis-ci\.(org|com) $
|
||||||
}x
|
}x
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user