Skip to content

Conversation

@gumbo2k
Copy link
Contributor

@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 (`: `).
@muthukrishnan24 muthukrishnan24 changed the title fix(header): Read description delimiter exactly as ": " fix(header): read description delimiter exactly as ": " Mar 15, 2025
@muthukrishnan24 muthukrishnan24 self-requested a review March 15, 2025 13:53
@muthukrishnan24 muthukrishnan24 self-requested a review March 15, 2025 14:05
@muthukrishnan24 muthukrishnan24 merged commit a8ffa3a into conventionalcommit:master Mar 15, 2025
1 check passed
@muthukrishnan24
Copy link
Contributor

Sorry for the delay.

Thanks for your contribution!

LGTM, merging now.

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

2 participants