UNPKG

awesome-string

Version:

The ultimate JavaScript string library

20 lines (18 loc) 747 B
/** * The string containing all printable ASCII characters. * @ignore * @type {string} */ export const PRINTABLE_ASCII = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'; /** * The string containing all printable ASCII characters in reverse order. * @ignore * @type {string} */ export const REVERSED_PRINTABLE_ASCII = '~}|{zyxwvutsrqponmlkjihgfedcba`_^]\\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)(\'&%$#"! '; /** * Regular expression to match the library version. * @see http://semver.org/ * @type {RegExp} */ export const REGEXP_SEMVER = /\bv?(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?\b/ig;