Clean up nip96 upload validation and make it less strict

This commit is contained in:
Jon Staab
2025-02-11 10:17:52 -08:00
committed by fiatjaf_
parent 3daade322c
commit 86f37d6003
2 changed files with 37 additions and 54 deletions

View File

@@ -2,7 +2,7 @@ import { test, expect } from 'bun:test'
import * as nip55 from './nip55.js'
// Function to parse the NostrSigner URI
function parseNostrSignerUri(uri) {
function parseNostrSignerUri(uri: string) {
const [base, query] = uri.split('?')
const basePart = base.replace('nostrsigner:', '')