feat: replace http nostr links with native nostr links

closes #666
refactor: embeds
This commit is contained in:
2024-09-13 10:52:25 +01:00
parent dd7424f616
commit b5c106d579
13 changed files with 86 additions and 137 deletions

View File

@ -4,3 +4,8 @@
export const EmailRegex =
// eslint-disable-next-line no-useless-escape
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
/**
* Match any NIP-19 code
*/
export const Bech32Regex = /(n(?:pub|profile|event|ote|addr|req|relay|chat)1[acdefghjklmnpqrstuvwxyz023456789]+)/;

View File

@ -6,3 +6,4 @@ export * from "./feed-cache";
export * from "./invoices";
export * from "./dexie-like";
export * from "./SortedMap/SortedMap";
export * from "./const";