UNPKG

@playbooks/utils

Version:

A collection of utilities used for Playbooks.

15 lines (14 loc) 257 B
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); }; export { testHTTPS, testNumber, testString };