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); }