Skip to content

Commit

Permalink
🐛 修复 bv 号匹配范围的问题 (#239)
Browse files Browse the repository at this point in the history
* 🐛 修复 bv 号匹配范围的问题

* 🔖 v5.12.2
  • Loading branch information
Well2333 authored Aug 11, 2024
1 parent 959862f commit 7a5f54b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_bilichat/base_content_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def _bili_check(state: T_State, event: Event, bot: Bot, msg: UniMsg) -> bo

try:
## video handle
if matched := re.search(r"av(\d{1,15})|BV(1[A-Za-z0-9]{2}4.1.7[A-Za-z0-9]{2})", bililink):
if matched := re.search(r"av(\d{1,15})|BV(1[0-9A-Za-z]{9})", bililink):
_id = matched.group()
logger.info(f"video id: {_id}")
content = await Video.from_id(_id, options)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "nonebot-plugin-bilichat"

version = "5.12.1"
version = "5.12.2"

description = "多种B站链接解析,视频词云,AI总结,你想要的都在 bilichat"
authors = [
Expand Down

0 comments on commit 7a5f54b

Please sign in to comment.