Skip to content

Commit

Permalink
修复了空格替换不能正确工作的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sheep-realms committed Apr 2, 2024
1 parent b169656 commit bc8d58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class Echo {

// 触发打印事件
if (typeof a == 'string' && that.filter.HTMLFormat) {
a = a.replace(/ /g, '  ');
a = a.replace(/ /g, ' ');
a = a.replace(/</g, '&lt;');
a = a.replace(/>/g, '&gt;');
}
Expand Down

0 comments on commit bc8d58a

Please sign in to comment.