@kumekay :
I would not duplicate existing regex, but would use ignore case flag:
re.IGNORECASE
regex_scope = r'^[a-z0-9_/.,*-]*$'
if commit_scope and not re.match(regex_scope, commit_scope, re.I if args.scope_case_insensitive else 0):
...
But it's just a note for the future improvement
@kumekay :
I would not duplicate existing regex, but would use ignore case flag:
re.IGNORECASEBut it's just a note for the future improvement