Skip to content

Improve regex (RDT-835) #29

Open
Open
@tomassebestik

Description

@tomassebestik

@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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions