What is Nostr?
prs / Damus PRs
npub1ahc…7v97
2023-09-13 07:14:27

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
Author Public Key
npub1ahckk8wkr64n2w5r4arsesf42upfhlmgy76vhxmlex7mvv4zhrnqry7v97