Skip to content

Commit 6a12b08

Browse files
committed
perf: 优化提取链接的正则表达式
1 parent 31e489a commit 6a12b08

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/Release_Notes.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
5. 支持设置直播下载的默认清晰度
88
6. 重构复制粘贴写入 Cookie 功能
99
7. 重构调用 ffmpeg 下载直播功能
10-
8. 优化配置文件参数容错机制
11-
9. 恢复数据请求延时机制
12-
10. 优化程序运行提示
13-
11. 其他细节优化
10+
8. 优化提取链接的正则表达式
11+
9. 优化配置文件参数容错机制
12+
10. 恢复数据请求延时机制
13+
11. 优化程序运行提示
14+
12. 其他细节优化
1415

1516
<p><strong>更新公告:本项目名称由 <code>TikTokDownloader</code> 变更为 <code>DouK-Downloader</code></strong></p>

src/link/requester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class Requester:
17-
URL = compile(r"(https?://\S+)")
17+
URL = compile(r"(https?://[^\s\"<>\\^`{|},。;!?、【】《》]+)")
1818
HEADERS = BLANK_HEADERS
1919

2020
def __init__(

0 commit comments

Comments
 (0)