Export const values
This commit is contained in:
parent
b2ae6adca6
commit
29998370ab
@ -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;
|
Loading…
Reference in New Issue
Block a user