Skip to content
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

Fix ・ detection in hashtag regex to construct hashtag correctly #22888

Merged

Conversation

parthoghosh24
Copy link
Contributor

This fixes #22871 as per which hastag was not getting properly generated for strings containing ・

@@ -26,7 +26,7 @@ class Tag < ApplicationRecord
has_many :featured_tags, dependent: :destroy, inverse_of: :tag
has_many :followers, through: :passive_relationships, source: :account

HASHTAG_SEPARATORS = "_\u00B7\u200c"
HASHTAG_SEPARATORS = "_\u00B7\u30FB\u200c"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the unicode for the character in separators to fix the issue.

@parthoghosh24 parthoghosh24 force-pushed the fix_hashtag_containing_period_detection branch from d502d4f to 142186f Compare January 2, 2023 18:27
@Gargron Gargron merged commit 115ab28 into mastodon:main Jan 4, 2023
@parthoghosh24 parthoghosh24 deleted the fix_hashtag_containing_period_detection branch January 4, 2023 03:14
nametoolong pushed a commit to nametoolong/nuage that referenced this pull request Jan 12, 2023
…odon#22888)

* Fix ・ detection in hashtag regex to construct hashtag correctly

* Fixed rubocop liniting issues

* More rubocop linting fix
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.

Poor Hashtag Detection Results in Incomplete Hashtag
3 participants