We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f44f3a commit fceafb9Copy full SHA for fceafb9
conventional_pre_commit/format.py
@@ -29,9 +29,9 @@ def r_types(types):
29
def r_scope(optional=True):
30
"""Regex str for an optional (scope)."""
31
if optional:
32
- return r"(\([\w \/:-]+\))?"
+ return r"(\([\w \/:,-]+\))?"
33
else:
34
- return r"(\([\w \/:-]+\))"
+ return r"(\([\w \/:,-]+\))"
35
36
37
def r_delim():
tests/test_format.py
@@ -61,6 +61,7 @@ def test_r_scope__special_chars():
61
assert regex.match("(some/thing)")
62
assert regex.match("(some thing)")
63
assert regex.match("(some:thing)")
64
+ assert regex.match("(some,thing)")
65
66
67
def test_r_delim():
0 commit comments