Skip to content

Commit 4eea8e4

Browse files
committed
feat: 增强sub参数处理逻辑,确保有效的sub地址包含点
1 parent af7ac91 commit 4eea8e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default {
247247
优选API.push(元素);
248248
} else {
249249
const subMatch = 元素.match(/sub\s*=\s*([^\s&#]+)/i);
250-
if (subMatch) {
250+
if (subMatch && subMatch[1].trim().includes('.')) {
251251
优选API.push('sub://' + subMatch[1].trim());
252252
} else if (元素.toLowerCase().startsWith('https://')) {
253253
优选API.push(元素);

0 commit comments

Comments
 (0)