UNPKG

@captive/plop-config

Version:
4 lines (3 loc) 142 B
export function requireNotEmpty() { return (promptValue) => (/.+/u.test(String(promptValue)) ? true : `${promptValue} must not empty`); }