@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
22 lines (21 loc) • 874 B
TypeScript
export declare const BASE62_REGEX: RegExp;
export declare const BASE64_REGEX: RegExp;
export declare const BASE64URL_REGEX: RegExp;
export declare const UUID_REGEX: RegExp;
export declare const COUNTRY_CODE_REGEX: RegExp;
export declare const CURRENCY_REGEX: RegExp;
/**
* @deprecated
* Avoid using blanket regex for a concept so ambiguous as "ID".
* We should always define what kind of an ID we talk about: MongoDB ID, Base64 ID etc.
*
* We keep this regex here, because JOI shared schemas has been exporting this check.
*/
export declare const ID_REGEX: RegExp;
export declare const IPV4_REGEX: RegExp;
export declare const IPV6_REGEX: RegExp;
export declare const LANGUAGE_TAG_REGEX: RegExp;
export declare const MAC_ADDRESS_REGEX: RegExp;
export declare const SEMVER_REGEX: RegExp;
export declare const SLUG_REGEX: RegExp;
export declare const URL_REGEX: RegExp;