You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@alinaghale88@Zhuochengyu I came looking for an issue with iSlug as basically anything with a special character was passing for me. When using special characters, I noticed that the regex will only fail if the second character is a special character like in your first example. Any other position and it doesn't get caught. I think it has to do with the fact that the regex also requires the string to be at least 3 characters long. Once it's 3 characters long, special characters are not caught like your second example.
Describe the bug
A clear and concise description of what the bug is.
IsSlug shows inconsistent results when I put "." in the inputs.
Examples
If applicable, add screenshots to help explain your problem.
Additional context
Validator.js version: 13.11.0
Node.js version: v18.15.0
OS platform: macOs 12.6.3
The text was updated successfully, but these errors were encountered: