fix: remove specific unicode characters from removespecialcharacters function
This commit is contained in:
parent
e4f4c6cd86
commit
f7f8c6f0c6
@ -154,7 +154,7 @@ export function removeQuotes(str) {
|
|||||||
|
|
||||||
export function removeSpecialCharacters(str: string) {
|
export function removeSpecialCharacters(str: string) {
|
||||||
// First remove newlines and quotes, then remove other special characters
|
// First remove newlines and quotes, then remove other special characters
|
||||||
return str.replace(/[\n"]/g, '').replace(/[^\p{L}\p{M}\p{N}\p{P}\p{S}]/gu, '')
|
return str.replace(/[\n"]/g, '').replace(/[\p{M}\p{N}\p{P}\p{S}]/gu, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
export function generateColorFromChar(char: string) {
|
export function generateColorFromChar(char: string) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user