Skip to content

Commit

Permalink
fix: fixed the bug where # would appear when typing without rich text…
Browse files Browse the repository at this point in the history
… plugin being loaded

This is a small probability event, but it does exist
  • Loading branch information
moonrailgun committed Oct 2, 2023
1 parent 6d010c5 commit e768bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/web/src/plugin/common/reg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const [getMessageRender, regMessageRender] = buildRegFn<
* 输入消息,返回渲染节点
*/
const defaultMessageTextDecorators = {
url: (url: string, label?: string) => url,
url: (url: string, label?: string) => (label ? `${label}(${url})` : url),
image: (plain: string, attrs: Record<string, unknown>) => plain,
card: (
plain: string,
Expand Down

0 comments on commit e768bd1

Please sign in to comment.