test(editor): Add tests for handling extended characters, emojis, and special key inputs
This commit is contained in:
@@ -472,7 +472,7 @@ export class Editor implements Component {
|
||||
// Filter out non-printable characters except newlines
|
||||
const filteredText = tabExpandedText
|
||||
.split("")
|
||||
.filter((char) => char === "\n" || (char >= " " && char <= "~"))
|
||||
.filter((char) => char === "\n" || char.length > 0)
|
||||
.join("");
|
||||
|
||||
// Split into lines
|
||||
|
||||
Reference in New Issue
Block a user