From 0ec2d481426e5914c81e0f27fb96811b9deaab4e Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 8 Oct 2025 16:39:30 -0400 Subject: [PATCH] Sanitize NIP-71 hashtag inputs --- components/edit-video-modal.html | 3 ++ components/upload-modal.html | 6 ++- js/ui/components/nip71FormManager.js | 71 +++++++++++++++++++++++--- tests/nip71-form-manager.test.mjs | 74 ++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+), 8 deletions(-) create mode 100644 tests/nip71-form-manager.test.mjs diff --git a/components/edit-video-modal.html b/components/edit-video-modal.html index 5fac2a24..fa6d9519 100644 --- a/components/edit-video-modal.html +++ b/components/edit-video-modal.html @@ -537,6 +537,9 @@ Add hashtag +

+ Enter keywords; leading # characters are stripped automatically when saving. +