Skip to content

Commit 872c974

Browse files
author
Taois
committed
feat: 优化源检测
1 parent 8a6083f commit 872c974

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

drpy-node-bundle/libs/localDsCore.bundled.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115621,6 +115621,7 @@ var UCHandler = class {
115621115621
const subDir = [];
115622115622
for (const item of items) if (item.dir === true) subDir.push(item);
115623115623
else if (item.file === true && item.obj_category === "video") {
115624+
let text = /[#|'"\[\]&<>]/g;
115624115625
if (item.size < 1024 * 1024 * 5) continue;
115625115626
item.stoken = this.shareTokenCache[shareData.shareId].stoken;
115626115627
item.file_name = text.test(item.file_name) ? item.file_name.replace(text, "") : item.file_name;
@@ -120499,7 +120500,7 @@ var static_exports = /* @__PURE__ */ __exportAll({
120499120500
merge: () => merge,
120500120501
parseHTML: () => parseHTML,
120501120502
root: () => root$1,
120502-
text: () => text$2,
120503+
text: () => text$1,
120503120504
xml: () => xml
120504120505
});
120505120506
/**
@@ -120557,7 +120558,7 @@ function xml(dom) {
120557120558
* @param elements - Elements to render.
120558120559
* @returns The rendered document.
120559120560
*/
120560-
function text$2(elements) {
120561+
function text$1(elements) {
120561120562
const elems = elements !== null && elements !== void 0 ? elements : this ? this.root() : [];
120562120563
let ret = "";
120563120564
for (let i = 0; i < elems.length; i++) ret += textContent(elems[i]);
@@ -122430,7 +122431,7 @@ function getAttr(elem, name, xmlMode) {
122430122431
(_a = elem.attribs) !== null && _a !== void 0 || (elem.attribs = {});
122431122432
if (!name) return elem.attribs;
122432122433
if (hasOwn(elem.attribs, name)) return !xmlMode && rboolean.test(name) ? name : elem.attribs[name];
122433-
if (elem.name === "option" && name === "value") return text$2(elem.children);
122434+
if (elem.name === "option" && name === "value") return text$1(elem.children);
122434122435
if (elem.name === "input" && (elem.attribs["type"] === "radio" || elem.attribs["type"] === "checkbox") && name === "value") return "on";
122435122436
}
122436122437
/**
@@ -122640,7 +122641,7 @@ function val(value) {
122640122641
for (const val of values) this.find(`option[value="${val}"]`).attr("selected", "");
122641122642
return this;
122642122643
}
122643-
return this.attr("multiple") ? option.toArray().map((el) => text$2(el.children)) : option.attr("value");
122644+
return this.attr("multiple") ? option.toArray().map((el) => text$1(el.children)) : option.attr("value");
122644122645
}
122645122646
case "button":
122646122647
case "input":
@@ -125399,7 +125400,7 @@ var manipulation_exports = /* @__PURE__ */ __exportAll({
125399125400
prependTo: () => prependTo,
125400125401
remove: () => remove,
125401125402
replaceWith: () => replaceWith,
125402-
text: () => text$1,
125403+
text: () => text,
125403125404
toString: () => toString$2,
125404125405
unwrap: () => unwrap,
125405125406
wrap: () => wrap$1,
@@ -126069,9 +126070,9 @@ function html(str) {
126069126070
function toString$2() {
126070126071
return this._render(this);
126071126072
}
126072-
function text$1(str) {
126073-
if (str === void 0) return text$2(this);
126074-
if (typeof str === "function") return domEach(this, (el, i) => this._make(el).text(str.call(el, i, text$2([el]))));
126073+
function text(str) {
126074+
if (str === void 0) return text$1(this);
126075+
if (typeof str === "function") return domEach(this, (el, i) => this._make(el).text(str.call(el, i, text$1([el]))));
126075126076
return domEach(this, (el) => {
126076126077
if (!hasChildren(el)) return;
126077126078
for (const child of el.children) child.next = child.prev = child.parent = null;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"xmlhttprequest": "^1.8.0"
8181
},
8282
"devDependencies": {
83-
"@anthropic-ai/mcpb": "^2.1.2",
84-
"rolldown": "^1.0.0-rc.4"
83+
8584
}
8685
}

0 commit comments

Comments
 (0)