@vuepress/utils 2.0.0-rc.17 → 2.0.0-rc.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -86,11 +86,11 @@ var isChildPath = (child, parent) => {
86
86
  };
87
87
 
88
88
  // src/module/sanitizeFileName.ts
89
- var INVALID_CHAR_REGEX = /[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g;
89
+ var INVALID_CHAR_REGEX = /[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g;
90
90
  var DRIVE_LETTER_REGEX = /^[a-z]:/i;
91
91
  var sanitizeFileName = (name) => {
92
92
  const driveLetter = DRIVE_LETTER_REGEX.exec(name)?.[0] || "";
93
- return driveLetter + name.substring(driveLetter.length).replace(INVALID_CHAR_REGEX, "_").replace(/^_+/, "");
93
+ return driveLetter + name.slice(driveLetter.length).replace(INVALID_CHAR_REGEX, "_").replace(/^_+/, "");
94
94
  };
95
95
 
96
96
  // src/module/transformPathToFileName.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/utils",
3
- "version": "2.0.0-rc.17",
3
+ "version": "2.0.0-rc.19",
4
4
  "description": "Utils package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -30,14 +30,14 @@
30
30
  "@types/debug": "^4.1.12",
31
31
  "@types/fs-extra": "^11.0.4",
32
32
  "@types/hash-sum": "^1.0.2",
33
- "debug": "^4.3.7",
33
+ "debug": "^4.4.0",
34
34
  "fs-extra": "^11.2.0",
35
35
  "globby": "^14.0.2",
36
36
  "hash-sum": "^2.0.0",
37
- "ora": "^8.1.0",
38
- "picocolors": "^1.1.0",
37
+ "ora": "^8.1.1",
38
+ "picocolors": "^1.1.1",
39
39
  "upath": "^2.0.1",
40
- "@vuepress/shared": "2.0.0-rc.17"
40
+ "@vuepress/shared": "2.0.0-rc.19"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"