fix target_ok? regexp

This commit is contained in:
Sven Fuchs 2012-10-21 18:21:15 +02:00
parent c9e415b00f
commit c2e06293a0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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