Skip to content

error even if the regex matches #22

@BigHoss

Description

@BigHoss

I implemented the hook and I get an error even it matches.

[Invalid Commit Message]
------------------------
Valid types: build
 ci
 docs
 feat
 fix
 perf
 refactor
 style
 test
 chore
Max length (first line): 52
Min length (first line): 1
Regex: ^[.0-9]+$|build
|ci
|docs
|feat
|fix
|perf
|refactor
|style
|test
|chore)(\(.+\))?: .{1,52}$
Actual commit message: "refactor(async): almost done"
Actual length: 29

and I also dont get it why my regex has line breaks in it

I am on windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions