When working with AngularJS, I am developing a feature to create folders. One requirement is that if a folder name contains special characters like /, :, ?, "<", or |, an error message should be displayed stating "A folder name cannot contain any of the following special characters: /, :, ?, "<", |".
What approach do you recommend for implementing this validation logic for folder names?