From a096f664c8ebd94e8ad3fc9d526a78a75c718e5d Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 23 May 2024 18:03:13 +0200 Subject: [PATCH] fix regex --- src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index 89b51355..caa6d672 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -22,7 +22,7 @@ const BoardLayout = () => { const isValidAccountCommentIndex = !accountCommentIndex || (!isNaN(parseInt(accountCommentIndex)) && parseInt(accountCommentIndex) >= 0); const isValidCommentCid = !commentCid || /^Qm[a-zA-Z0-9]{44}$/.test(commentCid); - const isValidSubplebbitAddress = !subplebbitAddress || subplebbitAddress.includes('.') || /^12D3K[a-zA-Z0-9]{44}$/.test(subplebbitAddress); + const isValidSubplebbitAddress = !subplebbitAddress || subplebbitAddress.includes('.') || /^12D3KooW[a-zA-Z0-9]{44}$/.test(subplebbitAddress); if (!isValidAccountCommentIndex || !isValidCommentCid || !isValidSubplebbitAddress) { return ;