Skip to content

Commit

Permalink
fix:快手评论模块优化@用户名处理函数,移除冗余console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
OduckO committed Sep 12, 2024
1 parent eef4aa0 commit edeb469
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion module/business/kuaishou/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ async function handling_at (data) {

// 匹配 @后面的字符,允许空格,直到 (\w+\)
text = text.replace(/(@[\S\s]+?)\(\w+\)/g, (match, p1) => {
console.log('匹配到的字符串:', match, p1)
// 将 @后面的名字替换为带有样式的 <span>,保留空格
return `<span style="color: rgb(3,72,141);">${p1.trim()}</span>`
})
Expand Down

0 comments on commit edeb469

Please sign in to comment.