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

fix(header): Read description delimiter exactly as ": " #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gumbo2k
Copy link

@gumbo2k gumbo2k commented Jul 15, 2024

This fixes an issue where a commit header like
this: type(scope): :bulb: look a light bulb! will case an error. lexer.Take() is greedy and will read : : into the Current() token and thus will fail the comparison to the expected delimiter (: ).

fixes: conventionalcommit/commitlint#15

This fixes an issue where a commit header like
this: `type(scope): 💡 look a light bulb!` will case
an error. `lexer.Take()` is greedy and will read `: :`
into the `Current()` token and thus will fail the comparison
to the expected delimiter (`: `).
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.

Allow gitmojis
1 participant