mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 02:04:05 +00:00
test(editor): Add tests for handling extended characters, emojis, and special key inputs
This commit is contained in:
parent
c8dcf1cdae
commit
ce0c42f539
2 changed files with 172 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue