nhanh-pure-function 1.3.18 → 1.3.19

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.
@@ -692,7 +692,7 @@ export class _FileTypeChecker {
692
692
  }
693
693
 
694
694
  // 将URL转换为小写,以确保文件扩展名匹配不区分大小写
695
- const lowerCaseUrl = url.toLowerCase();
695
+ const lowerCaseUrl = _GetHrefName(url).toLowerCase();
696
696
 
697
697
  // 如果指定了文件类型,则检查URL是否具有该类型的任何文件扩展名
698
698
  if (type) {
package/lib/test.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { _GetHrefName } from "./Utility/Utility";
2
2
 
3
- const value = _GetHrefName("http://vfv/vf/vdwdqd.dw?id=21");
3
+ const value = _GetHrefName(
4
+ "https://fastly.picsum.photos/id/841/805/453.jpg?hmac=RMVB2BBB6T34wI08nwWz1urBgdzSQxNR6L48hkOsTNo"
5
+ );
4
6
 
5
7
  console.log(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhanh-pure-function",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "description": "纯函数工具",
5
5
  "main": "lib/Index.js",
6
6
  "scripts": {