mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
nip27.find --> nip27.matchAll
This commit is contained in:
2
nip27.ts
2
nip27.ts
@@ -14,7 +14,7 @@ export interface NostrURIMatch extends nip21.NostrURI {
|
||||
}
|
||||
|
||||
/** Find and decode all NIP-21 URIs. */
|
||||
export function find(content: string): NostrURIMatch[] {
|
||||
export function matchAll(content: string): NostrURIMatch[] {
|
||||
const matches = content.matchAll(regex())
|
||||
|
||||
return [...matches].map(match => {
|
||||
|
||||
Reference in New Issue
Block a user