mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make our regex match the homebrew tap upstream regex.
Fixes #312 Fixes #297
This commit is contained in:
parent
1537c297b3
commit
4ada937207
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue