#Validation Error when creating custom validations for group fields

2 messages · Page 1 of 1 (latest)

tribal jetty
#

Hi,

I'm trying to create a simple validation function that checks if the field has any special characters. The issue is, despite the function working (checked with console.logs), I get a validation error issue.

Here is the function:

export function hasSpecialCharacters(input: string): boolean { const specialCharsRegex = /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/; return specialCharsRegex.test(input); }

turbid heathBOT