UNPKG

deepify

Version:
16 lines (12 loc) 282 B
/** * Created by CCristi on 5/5/16. */ 'use strict'; module.exports = { alphanumericalNotEmpty: (value) => { if (!/^[a-zA-Z0-9_\-]{2,}$/.test(value)) { return 'String should contain only [a-zA-Z0-9_-] and have at least 2 characters.'; } return true; } };