6 lines
367 B
TypeScript
6 lines
367 B
TypeScript
export const AlphaNumeric = /^[a-zA-Z0-9]+$/;
|
|
export const SHA256 = /^[a-f0-9A-F]{64}$/;
|
|
export const SemVer = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
|
|
export const URLRegex =
|
|
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;
|