UNPKG

@playbooks/utils

Version:

A collection of utilities used for Playbooks.

15 lines (14 loc) 389 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const testHTTPS = (data) => { return /(http(s?)):\/\//i.test(data); }; const testNumber = (data) => { return /^[0-9]/.test(data); }; const testString = (data) => { return /^[a-zA-Z-]/.test(data); }; exports.testHTTPS = testHTTPS; exports.testNumber = testNumber; exports.testString = testString;