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.
2 parents a383c68 + 429e1a0 commit 6beb7a7Copy full SHA for 6beb7a7
conventional_pre_commit/format.py
@@ -23,7 +23,7 @@ def r_types(types):
23
24
def r_scope():
25
"""Regex str for an optional (scope)."""
26
- return r"(\([\w \/-]+\))?"
+ return r"(\([\w \/:-]+\))?"
27
28
29
def r_delim():
tests/test_format.py
@@ -53,6 +53,7 @@ def test_r_scope__special_chars():
53
assert regex.match("(some_thing)")
54
assert regex.match("(some/thing)")
55
assert regex.match("(some thing)")
56
+ assert regex.match("(some:thing)")
57
58
59
def test_r_delim():
0 commit comments