UNPKG

@validate-me/core

Version:

Main package for `validate-me`. It contains everything to run client side validations with any kind of JS framework or with vanilla JS.

9 lines (7 loc) 238 B
const pattern = (_, pattern, type, flags, example) => `${ type === 'mul' ? 'Each comma-separated-value m' : 'M' }ust match the following pattern: ${pattern}${ example ? ` - E.g. ${example}` : '' }`; export default pattern;