provide exact regex #220

Open
opened 2026-02-17 11:54:32 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Hokwang on GitHub (Feb 27, 2025).

Hi,

I think that
need to provide exact regex
for applying this policy easily.

There are many regarding Q&A, articles in the internet,
but I could not find exact one. (googling)

And one more thing I can say, now I am chatting with chatgpt, claude,
they also didn't return good answer.
The reason why they can't get the answer is, I think, below conditions are complicated.

body is optional, can have many newline, many paragraphs, or :<space> also (any characters are okay and recognize last paragraph is footer, all upper side paragraphs except last are body).
footer is optional, can have :<space> or <space>#.

Originally created by @Hokwang on GitHub (Feb 27, 2025). Hi, I think that <conventional commits org> need to provide exact regex for applying this policy easily. There are many regarding Q&A, articles in the internet, but I could not find exact one. (googling) And one more thing I can say, now I am chatting with chatgpt, claude, they also didn't return good answer. The reason why they can't get the answer is, I think, below conditions are complicated. body is optional, can have many newline, many paragraphs, or `:<space>` also (any characters are okay and recognize last paragraph is footer, all upper side paragraphs except last are body). footer is optional, can have `:<space>` or `<space>#`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#220