ztxkutils 2.10.44 → 2.10.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/fileOperation.js +3 -3
- package/package.json +1 -1
package/dist/fileOperation.js
CHANGED
@@ -196,7 +196,7 @@ function previewFile(fileUrl, fileId, otherOption) {
|
|
196
196
|
}
|
197
197
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
198
198
|
try {
|
199
|
-
titleName = titleName.
|
199
|
+
titleName = titleName.replace(/[~!@#$%^&*]/g, '');
|
200
200
|
}
|
201
201
|
catch (err) {
|
202
202
|
console.log(err);
|
@@ -234,7 +234,7 @@ function batchPreviewFile(fileUrl, fileId, otherOption) {
|
|
234
234
|
}
|
235
235
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
236
236
|
try {
|
237
|
-
titleName = titleName.
|
237
|
+
titleName = titleName.replace(/[~!@#$%^&*]/g, '');
|
238
238
|
}
|
239
239
|
catch (err) {
|
240
240
|
console.log(err);
|
@@ -259,7 +259,7 @@ function createOriginalUrl(fileUrl, fileId, otherOption) {
|
|
259
259
|
var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
|
260
260
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
261
261
|
try {
|
262
|
-
titleName = titleName.
|
262
|
+
titleName = titleName.replace(/[~!@#$%^&*]/g, '');
|
263
263
|
}
|
264
264
|
catch (err) {
|
265
265
|
console.log(err);
|