We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce0dd65 + 27d1f8a commit 910cf5dCopy full SHA for 910cf5d
src/renderer/src/utils/drpy/htmlParser.ts
@@ -17,7 +17,7 @@ import urlJoin from 'url';
17
18
const PARSE_CACHE = true; // 解析缓存
19
const NOADD_INDEX = ':eq|:lt|:gt|:first|:last|:not|:even|:odd|:has|:contains|:matches|:empty|^body$|^#'; // 不自动加eq下标索引
20
-const URLJOIN_ATTR = '(url|src|href|-original|-src|-play|-url|style)$'; // 需要自动urljoin的属性
+const URLJOIN_ATTR = '(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)'; // 需要自动urljoin的属性
21
const SPECIAL_URL = '^(ftp|magnet|thunder|ws):'; // 过滤特殊链接,不走urlJoin
22
23
class Jsoup {
0 commit comments