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