UNPKG

@playbooks/utils

Version:

A collection of utilities used for Playbooks.

15 lines (14 loc) 681 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const nonAlphaNumericRegex = /[^a-zA-Z0-9- ]/g; const alphaNumericRegex = /^([a-zA-Z]|[0-9]|-)+$/g; const httpRegex = /(?:https?):\/\/(\w+:?\w*)/g; const nonAlphaNumericRegexString = "[^a-zA-Z0-9- ]"; const alphaNumericRegexString = "^([a-zA-Z]|[0-9]|-)+$"; const httpRegexString = "^https?://"; exports.alphaNumericRegex = alphaNumericRegex; exports.alphaNumericRegexString = alphaNumericRegexString; exports.httpRegex = httpRegex; exports.httpRegexString = httpRegexString; exports.nonAlphaNumericRegex = nonAlphaNumericRegex; exports.nonAlphaNumericRegexString = nonAlphaNumericRegexString;