Skip to content

Harden regex for PR description footer detection #198

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

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

phil-blain
Copy link
Contributor

A recent Gitgitgadget PR [1] demonstrates that GGG fails to parse
CC: footers if no space is found after the colon.

Replace the literal space " " by the more lenient "\s*" so that CC:s are
parsed correctly if any kind of whitespace, or no whitespace at all, is
detected after the colon.

[1] gitgitgadget/git#523

Helped-by: Johannes Schindelin [email protected]
Signed-off-by: Philippe Blain [email protected]

A recent Gitgitgadget PR [1] demonstrates that GGG fails to parse
CC: footers if no space is found after the colon.

Replace the literal space " " by the more lenient "\s*" so that CC:s are
parsed correctly if any kind of whitespace, or no whitespace at all, is
detected after the colon.

[1] gitgitgadget/git#523

Helped-by: Johannes Schindelin <[email protected]>
Signed-off-by: Philippe Blain <[email protected]>
@phil-blain phil-blain requested a review from dscho January 24, 2020 02:21
@phil-blain
Copy link
Contributor Author

@dscho I did a single commit, if you prefer [demonstrate failure + fix it] in separate commits I'll split it.

Copy link
Member

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@dscho dscho merged commit d0ebbdf into gitgitgadget:master Jan 24, 2020
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