a2bei4-utils 1.0.6 → 1.0.7

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.
@@ -1228,6 +1228,9 @@ registerProcessor('audio-stream-resampler-processor', AudioStreamResamplerProces
1228
1228
  const urlPathname = new URL(url).pathname;
1229
1229
  // 获取路径的最后一部分作为文件名,并移除可能的查询参数
1230
1230
  fileName = urlPathname.substring(urlPathname.lastIndexOf("/") + 1).split("?")[0];
1231
+ if (fileName) {
1232
+ fileName = decodeURIComponent(fileName);
1233
+ }
1231
1234
  } catch (e) {}
1232
1235
  // 如果提取后文件名为空(例如 URL 以 '/' 结尾),也使用时间戳
1233
1236
  if (!fileName) {