Skip to content

Fixes #3197 - Only emojify standalone emojis#3208

Merged
eamodio merged 1 commit intogitkraken:mainfrom
m4rch3n1ng:emoji-regex
Apr 8, 2024
Merged

Fixes #3197 - Only emojify standalone emojis#3208
eamodio merged 1 commit intogitkraken:mainfrom
m4rch3n1ng:emoji-regex

Conversation

@m4rch3n1ng
Copy link
Contributor

@m4rch3n1ng m4rch3n1ng commented Mar 30, 2024

Description

Fixes #3197

Extend the emojiRegex to only emojify emojis that are delimited by a space (as in "text :emoji: text"), or with a line start / line end (as in ":emoji: text" or "text :emoji:")

(as a side note: i wanted to write a few tests to ensure this works, but i couldn't figure out where to place them so i just left it)

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

Copy link
Member

@eamodio eamodio left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

@eamodio eamodio merged commit 6a9f9bf into gitkraken:main Apr 8, 2024
@eamodio
Copy link
Member

eamodio commented Apr 8, 2024

Thank you for your contribution!

Thank you

@m4rch3n1ng m4rch3n1ng deleted the emoji-regex branch April 8, 2024 07:29
@KrombopulosMichael
Copy link

This breaks just about every commit message I've written on another account.

@m4rch3n1ng
Copy link
Contributor Author

@KrombopulosMichael then open a new issue, where you detail your problem and then people may be able to fix that. vaguely complaining here likely won't help you.

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.

spurious emoji in git commit messages containing rust paths

3 participants