Make our regex match the homebrew tap upstream regex.

Fixes #312
Fixes #297
This commit is contained in:
Toshio Kuratomi 2015-03-18 20:23:05 -07:00 committed by Matt Clay
parent 1537c297b3
commit 4ada937207

View file

@ -52,7 +52,7 @@ homebrew_tap: tap=homebrew/dupes,homebrew/science state=present
def a_valid_tap(tap):
'''Returns True if the tap is valid.'''
regex = re.compile(r'^(\S+)/(homebrew-)?(\w+)$')
regex = re.compile(r'^([\w-]+)/(homebrew-)?([\w-]+)$')
return regex.match(tap)