I have a regex:
values.communicators.forEach(e => {
let isValid = /(?=.*[a-zA-Z\d].*)[a-zA-Z\d!@#$&-. )(:]{2,}/gi.test(e.name);
console.log(isValid)
if (!isValid) {
errors.communicators = 'Unsupported character or length in communicator names.'
}
})
When I use the like above in code something like Some Diddy∞∞
will pass but at https://regexr.com/ it will not.
Does anyone know what may be going on?