Commit 5244008
authored
Update and rename specialcharacter.js to specialcharacter.js
- Moved the script to the new created folder in Regular Expressions.
- Refactored/fixed the code:
-- Renamed regex variable to disallowedChars for clarity.
-- Escaped special characters inside the regex to correctly match (, ), [, and ].
-- Added detailed comments explaining the purpose and structure of the regular expression.
-- Replaced placeholder field name with a variable for easier reuse and readability.
-- Improved error messaging to clearly inform users about invalid input.1 parent c484783 commit 5244008
File tree
2 files changed
+24
-15
lines changed- Client-Side Components/Client Scripts/Field Validation
- Specialized Areas/Regular Expressions/Check for special characters
2 files changed
+24
-15
lines changedLines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments