Skip to content

Workaround for comments with leading or trailing \s character(s)#8

Merged
shanegenschaw merged 2 commits into
shanegenschaw:masterfrom
freeyoung:master
May 16, 2026
Merged

Workaround for comments with leading or trailing \s character(s)#8
shanegenschaw merged 2 commits into
shanegenschaw:masterfrom
freeyoung:master

Conversation

@freeyoung

Copy link
Copy Markdown

Sometimes a user might add a \s (e.g. \n) at the end of the comment unintentionally and then would be confused as to why the trigger wouldn't work as expected 🙈

This pull request trims the comment body before doing the regex match as a workaround.

@devzom devzom left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Worth to merge PR, I was doing that as overcome, this will solves many problem, thanks @freeyoung

@devzom

devzom commented May 6, 2026

Copy link
Copy Markdown

@shanegenschaw can we get it merged or maybe it's worth to add trusted contributors?

fyi. it's time to upgrade to node v24

@shanegenschaw shanegenschaw merged commit 447b2d0 into shanegenschaw:master May 16, 2026
@shanegenschaw

Copy link
Copy Markdown
Owner

sorry for the delay, not actively using this right now, merged

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.

3 participants