prs on Nostr: Remove UTF-8 punctuation from hashtags and add test cases for hashtags (#1546) Patch ...
Remove UTF-8 punctuation from hashtags and add test cases for hashtags (#1546)
Patch 1:
damus-c: remove UTF-8 punctuation from hashtags
Check for UTF-8 punctuation in addition to regular punctuation in hashtags.
Examples of changes:
- Handle multi-byte UTF-8 characters in addition to single-byte ASCII characters
- Allow underscore (_) in hashtags
- Allow Japanese wave dash (〜) in hashtags
- Remove ellipsis (…) from hashtags
- Remove currency symbols ($, £, ¥, €, ₿) from hashtags
Closes: https://github.com/damus-io/damus/issues/1518
Patch 2:
test: add test cases for ASCII and UTF-8 characters in hashtags
2023-08-hashtag-linked-punctuation, 2 commits
https://github.com/damus-io/damus/pull/1546
Patch 1:
damus-c: remove UTF-8 punctuation from hashtags
Check for UTF-8 punctuation in addition to regular punctuation in hashtags.
Examples of changes:
- Handle multi-byte UTF-8 characters in addition to single-byte ASCII characters
- Allow underscore (_) in hashtags
- Allow Japanese wave dash (〜) in hashtags
- Remove ellipsis (…) from hashtags
- Remove currency symbols ($, £, ¥, €, ₿) from hashtags
Closes: https://github.com/damus-io/damus/issues/1518
Patch 2:
test: add test cases for ASCII and UTF-8 characters in hashtags
2023-08-hashtag-linked-punctuation, 2 commits
https://github.com/damus-io/damus/pull/1546