ztxkutils 2.10.44 → 2.10.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.replaceAll('%', '');
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.replaceAll('%', '');
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.replaceAll('%', '');
262
+ titleName = titleName.replace(/[~!@#$%^&*]/g, '');
263
263
  }
264
264
  catch (err) {
265
265
  console.log(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.44",
3
+ "version": "2.10.45",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",