diff --git a/functions/index.js b/functions/index.js index f4577c0..3efd724 100644 --- a/functions/index.js +++ b/functions/index.js @@ -458,7 +458,7 @@ function arraysHaveSameMembers(arr1, arr2) { * @return {string} The original string with the unwanted characters removed. */ function cleanseVocabString(item) { - const chars = /[ °"§%()\[\]{}=\\?´`'#<>|,;.:+_-!£$^&*~/]+/g; + const chars = /[\p{P}\p{S} ]+/ug; return item.replace(chars, ""); }