diff --git a/index.html b/index.html index 99d0056..130ecd9 100644 --- a/index.html +++ b/index.html @@ -6,12 +6,12 @@ - + - + diff --git a/public/images/rabbit_app_1280.png b/public/images/rabbit_app_1280.png new file mode 100644 index 0000000..c8225dd Binary files /dev/null and b/public/images/rabbit_app_1280.png differ diff --git a/public/manifest.json b/public/manifest.json index d189b79..7e69bd3 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -10,5 +10,9 @@ "src": "images/rabbit_app_256.png", "sizes": "256x256", "type": "image/png" + }, { + "src": "images/rabbit_app_1280.png", + "sizes": "1280x1280", + "type": "image/png" }] } diff --git a/src/core/parseTextNote.ts b/src/core/parseTextNote.ts index c520638..0a9c127 100644 --- a/src/core/parseTextNote.ts +++ b/src/core/parseTextNote.ts @@ -58,7 +58,7 @@ export type MentionedUser = { }; const tagRefRegex = /(?:#\[(?\d+)\])/g; -const hashTagRegex = /#(?[^[-^`:-@!-/{-~\d\s][^[-^`:-@!-/{-~\s]+)/g; +const hashTagRegex = /#(?[\p{Letter}\p{Number}_]+)/gu; // raw NIP-19 codes, NIP-21 links (NIP-27) // nrelay and naddr is not supported by nostr-tools const mentionRegex = /(?:nostr:)?(?(npub|note|nprofile|nevent)1[ac-hj-np-z02-9]+)/gi; diff --git a/src/pages/Hello.tsx b/src/pages/Hello.tsx index 15a2472..4f4f4b5 100644 --- a/src/pages/Hello.tsx +++ b/src/pages/Hello.tsx @@ -48,7 +48,7 @@ const Hello: Component = () => { return (
- logo + logo

Rabbit

Rabbit is a Web client for Nostr.

diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index fc352b2..341cf36 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -122,6 +122,9 @@ const Home: Component = () => { since: epoch() - 12 * 60 * 60, }, ], + clientEventFilter: (ev) => { + return /[\p{scx=Hiragana}\p{scx=Katakana}\p{sc=Han}]/u.test(ev.content); + }, })); onMount(() => {