Skip to content

Commit

Permalink
更宽的字符集
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jun 18, 2024
1 parent 7b95ef8 commit 835abf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class Pseudoterminal implements vscode.Pseudoterminal {
if (data.charCodeAt(0) < 32) {
return;
}
data = data.replace(/[^\x20-\x7E\u4E00-\u9FA5]/g, ' ');
data = data.replace(/[^\x20-\x7E\u0000-\uFFFFFFFF]/g, ' ');
let newData = this.inputedData.slice(0, this.curOffset) + data + this.inputedData.slice(this.curOffset);
this.refreshLine(newData, this.curOffset + data.length);
this.historyIndex = 0;
Expand Down

0 comments on commit 835abf3

Please sign in to comment.