AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]分段回复会过滤掉有些内容(如网址)

Open linkin149 opened this issue 1 year ago • 1 comments

发生了什么

Image

Image 分段回复中把网址过滤掉了

如何复现?

让bot分段回复任意含有网址的对话即可

AstrBot 版本与部署方式

v3.4.18 Windows启动器

操作系统

Windows

额外信息

如前面所示

你愿意提交 PR 吗?

  • [x] 是的,我愿意提交 PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

linkin149 avatar Feb 03 '25 16:02 linkin149

把正则表达式改成 ((?!https?://\S+)[.?! ~…]+|.+) 就解决了

Image

linkin149 avatar Feb 08 '25 10:02 linkin149