Skip to content

Commit f3d2419

Browse files
authored
fix: 修复插件测试数据匹配问题 (#132)
1 parent 6a5e338 commit f3d2419

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- 修复插件测试数据匹配问题
13+
1014
## [2.3.0] - 2023-05-13
1115

1216
### Added

plugin_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from urllib.request import urlopen
1212

1313
# 匹配信息的正则表达式
14-
ISSUE_PATTERN = r"\*\*{}:\*\*\s+([^\s*].*?)(?=(?:\s+\*\*|$))"
14+
ISSUE_PATTERN = r"### {}\s+([^\s#].*?)(?=(?:\s+###|$))"
1515
# 插件信息
1616
PROJECT_LINK_PATTERN = re.compile(ISSUE_PATTERN.format("PyPI 项目名"))
1717
MODULE_NAME_PATTERN = re.compile(ISSUE_PATTERN.format("插件 import 包名"))

0 commit comments

Comments
 (0)