UNPKG

madrun

Version:

CLI tool to run multiple npm-scripts in a madly comfortable way

9 lines (7 loc) 181 B
export default (str) => { const wildcard = `^${str .replace('.', '\\.') .replace('*', '.*') .replace('?', '.?')}$`; return RegExp(wildcard); };