Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(regex): add more validations #42

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

rboonzaijer
Copy link
Contributor

Nice commit hook you have made! :)

This was the first hit I got on Google, but I ran across some issues for a couple of commit messages so I refactored the regular expression a bit to add some additional validation to the commit messages.

And also extended the error message a bit so you can quickly see the format you should use and what types are valid.

Tests for https://regex101.com are in the CHANGELOG.md file.

@hazcod hazcod merged commit 1ea8d9a into hazcod:master Dec 24, 2023
1 of 2 checks passed
@hazcod
Copy link
Owner

hazcod commented Dec 24, 2023

Hi @rboonzaijer , thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants