Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
88b5f20943
commit
4ca471bac6
|
@ -40,7 +40,7 @@ function isWordChar(ch: string | undefined): boolean {
|
|||
*/
|
||||
function stripUnsafeCharacters(str: string): string {
|
||||
const stripped = stripAnsi(str);
|
||||
return toCodePoints(stripAnsi(stripped))
|
||||
return toCodePoints(stripped)
|
||||
.filter((char) => {
|
||||
if (char.length > 1) return false;
|
||||
const code = char.codePointAt(0);
|
||||
|
|
Loading…
Reference in New Issue