nip27.find --> nip27.matchAll

This commit is contained in:
Alex Gleason
2023-04-22 19:06:53 -05:00
parent dcf101c6c2
commit 6a037d1658
2 changed files with 3 additions and 3 deletions

View File

@@ -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 => {