Commit 3d12a1f
authored
Regex/move and improve (#2006)
* Create folder and readme.md
- Created sub-folder "Check for special characters" in the Regular Expressions folder.
- Added readme
* 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.
* Delete Client-Side Components/Client Scripts/Field Validation directory
Deleted the old folder. Files in the folder have moved to the Regex folder.
* Update readme.md
Expanded and clarified the Readme. Also included in the description the updated script.1 parent 07adccc commit 3d12a1f
File tree
4 files changed
+50
-19
lines changed- Client-Side Components/Client Scripts/Field Validation
- Specialized Areas/Regular Expressions/Check for special characters
4 files changed
+50
-19
lines changedLines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 26 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 | + | |
| 25 | + | |
| 26 | + | |
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