Fixed github name regex so specs run

This commit is contained in:
Jacob Atzen
2010-03-14 11:45:07 +01:00
committed by Joshua Nichols
parent de0b14bbd6
commit 78e952c2e4

View File

@@ -24,7 +24,7 @@ class Homesick < Thor
self.shell = Homesick::Shell.new
end
GITHUB_NAME_REPO_PATTERN = /([A-Za-z_-]+)\/([A-Za-z_-]+)/
GITHUB_NAME_REPO_PATTERN = /\A([A-Za-z_-]+)\/([A-Za-z_-]+)\Z/
desc "clone URI", "Clone +uri+ as a castle for homesick"
def clone(uri)