Skip to content

Commit

Permalink
Merge pull request #237 from hjdhnx/main
Browse files Browse the repository at this point in the history
修复pd函数不支持data-开头属性自动拼接问题
  • Loading branch information
Hiram-Wong authored May 30, 2024
2 parents ce0dd65 + 27d1f8a commit 910cf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/utils/drpy/htmlParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import urlJoin from 'url';

const PARSE_CACHE = true; // 解析缓存
const NOADD_INDEX = ':eq|:lt|:gt|:first|:last|:not|:even|:odd|:has|:contains|:matches|:empty|^body$|^#'; // 不自动加eq下标索引
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的属性
const SPECIAL_URL = '^(ftp|magnet|thunder|ws):'; // 过滤特殊链接,不走urlJoin

class Jsoup {
Expand Down

0 comments on commit 910cf5d

Please sign in to comment.