Make our regex match the homebrew tap upstream regex.

Fixes #312
Fixes #297
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent 696bc60caa
commit cb848fcd9e

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

Loading…
Cancel
Save