Added TTS helper
All checks were successful
Build / Publish Docs (push) Successful in 33s
Build / Build NPM Project (push) Successful in 44s
Build / Tag Version (push) Successful in 6s

This commit is contained in:
2026-01-18 12:56:20 -05:00
parent 1be2c1118f
commit fda92e46d5
4 changed files with 142 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ export function pascalCase(str?: string): string {
* @param {string} str Input string with emojis
* @returns {string} Sanitized string without emojis
*/
function removeEmojis(str: string): string {
export function removeEmojis(str: string): string {
const emojiRegex = /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud83c[\udde6-\uddff]|[\ud83d[\ude00-\ude4f]|[\ud83d[\ude80-\udeff]|[\ud83c[\udd00-\uddff]|[\ud83d[\ude50-\ude7f]|[\u2600-\u26ff]|[\u2700-\u27bf]|[\ud83e[\udd00-\uddff]|[\ud83c[\udf00-\uffff]|[\ud83d[\ude00-\udeff]|[\ud83c[\udde6-\uddff])/g;
return str.replace(emojiRegex, '');
}