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

Commit prefixes with dashes aren't highlighted #56

Closed
flexagoon opened this issue Feb 25, 2024 · 3 comments · Fixed by #62
Closed

Commit prefixes with dashes aren't highlighted #56

flexagoon opened this issue Feb 25, 2024 · 3 comments · Fixed by #62

Comments

@flexagoon
Copy link

If you type a commit message like this:

foo: bar

Then foo will be recognized as a prefix and will have a different color. However, if you type something like

foo-bar: baz

foo-bar is not recognized as a prefix, and the entire message has the same color.

@flexagoon flexagoon changed the title Commit prefixes with underscores aren't highlighted Commit prefixes with dashes aren't highlighted Feb 25, 2024
@gbprod
Copy link
Owner

gbprod commented Feb 27, 2024

You're right !
Thanks for your feedback !

@flexagoon
Copy link
Author

flexagoon commented Feb 27, 2024

@gbprod another thing I noticed today is that commit scopes starting with number aren't highlighted. Eg I have a repository where I had to prefix a commit with fix(02): and it didn't get highlighted as a commit scope.

Should I open a separate issue for that?

@gbprod
Copy link
Owner

gbprod commented Feb 27, 2024

Ok! no need to open another issue, thanks.
I'll try to fix this soon.

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 a pull request may close this issue.

2 participants