Skip to content

Commit

Permalink
fix: remove redundant process
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Sep 23, 2024
1 parent b45719d commit 51fdf91
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ export class Messager {
.replace(new RegExp(`${placeholders.br}${placeholders.pEnd}`, 'g'), placeholders.pEnd)
// 再把 br 替换为换行
.replace(new RegExp(placeholders.br, 'g'), '\n')
// 若是最后一个消息元素,段落起始和段落末尾段落标记替换为空
.replace(new RegExp(placeholders.pEnd + '*' + '$', 'g'), placeholders.pGeneral)
.replace(new RegExp('^' + placeholders.pStart + '*', 'g'), placeholders.pGeneral)

if (isFirst) {
x.textElement.content = x.textElement.content
Expand Down

0 comments on commit 51fdf91

Please sign in to comment.