Export const values

This commit is contained in:
Kieran 2023-01-03 11:04:36 +00:00
parent b2ae6adca6
commit 29998370ab
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -36,19 +36,19 @@ export const EmailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)
/** /**
* Generic URL regex * Generic URL regex
*/ */
const UrlRegex = /((?:http|ftp|https):\/\/(?:[\w+?\.\w+])+(?:[a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?)/i; export const UrlRegex = /((?:http|ftp|https):\/\/(?:[\w+?\.\w+])+(?:[a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?)/i;
/** /**
* Extract file extensions regex * Extract file extensions regex
*/ */
const FileExtensionRegex = /\.([\w]+)$/i; export const FileExtensionRegex = /\.([\w]+)$/i;
/** /**
* Extract note reactions regex * Extract note reactions regex
*/ */
const MentionRegex = /(#\[\d+\])/gi; export const MentionRegex = /(#\[\d+\])/gi;
/** /**
* Simple lightning invoice regex * Simple lightning invoice regex
*/ */
const InvoiceRegex = /(lnbc\w+)/i; export const InvoiceRegex = /(lnbc\w+)/i;