ztxkutils 2.10.45 → 2.10.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.replace(/[~!@#$%^&*]/g, '');
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.replace(/[~!@#$%^&*]/g, '');
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.replace(/[~!@#$%^&*]/g, '');
262
+ titleName = titleName.replace(/[~!@#$%^&*{}|]/g, '');
263
263
  }
264
264
  catch (err) {
265
265
  console.log(err);