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