ztxkutils 2.9.10 → 2.9.11

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.
@@ -149,6 +149,7 @@ function previewFile(fileUrl, fileId, otherOption) {
149
149
  token = getToken() || otherOption;
150
150
  }
151
151
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
152
+ titleName = titleName.replaceAll('%', '');
152
153
  var _fileUrl = fileUrl.endsWith('/')
153
154
  ? fileUrl.slice(0, fileUrl.length - 1)
154
155
  : fileUrl;
@@ -168,6 +169,7 @@ function previewFile(fileUrl, fileId, otherOption) {
168
169
  function createOriginalUrl(fileUrl, fileId, otherOption) {
169
170
  var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
170
171
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
172
+ titleName = titleName.replaceAll('%', '');
171
173
  var _fileUrl = fileUrl.endsWith('/')
172
174
  ? fileUrl.slice(0, fileUrl.length - 1)
173
175
  : fileUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.9.10",
3
+ "version": "2.9.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",