-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add string sanitization function to remove special characters a…
…nd format text Implemented a TypeScript function `sanitizeTitle` that removes all special characters from a string, replaces spaces with dashes, and converts the string to lowercase. This is useful for generating URL-friendly strings from user input. Includes handling for diacritical marks and ensures consistent formatting.
- Loading branch information
1 parent
fffcafe
commit 091b7de
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters