We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cda578 commit 9904f89Copy full SHA for 9904f89
.github/automation/commit-msg-check.py
@@ -20,6 +20,7 @@
20
21
import argparse
22
import subprocess
23
+import re
24
25
# * Ensuring the scopes end in colon and same level scopes are comma delimited.
26
# TODO: Limit scopes to an acceptable list of tags.
@@ -36,7 +37,7 @@ def __scopeCheck(msg: str):
36
37
scopesArray = firstLine.split(":")[:-1]
38
39
for scopes in scopesArray:
- numWords = len(scopes.split())
40
+ numWords = len(re.split(',| ', scopes))
41
numCommas = scopes.count(",")
42
43
if numWords != numCommas + 1:
0 commit comments