Skip to content

Commit

Permalink
Fix regex for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Apr 30, 2024
1 parent c40cd46 commit e13f6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yamale/validators/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ class Mac(Regex):
def __init__(self, *args, **kwargs):
super(Mac, self).__init__(*args, **kwargs)
self.regexes = [
re.compile(r"[0-9a-fA-F]{2}([-:]?)[0-9a-fA-F]{2}(\\1[0-9a-fA-F]{2}){4}$"),
re.compile(r"[0-9a-fA-F]{4}([-:]?)[0-9a-fA-F]{4}(\\1[0-9a-fA-F]{4})$"),
re.compile(r"[0-9a-fA-F]{2}([-:]?)[0-9a-fA-F]{2}(\1[0-9a-fA-F]{2}){4}$"),
re.compile(r"[0-9a-fA-F]{4}([-:]?)[0-9a-fA-F]{4}(\1[0-9a-fA-F]{4})$"),
]


Expand Down

0 comments on commit e13f6f5

Please sign in to comment.