Skip to content

Commit 0d1bf62

Browse files
committed
Fixed path test
1 parent 76722d0 commit 0d1bf62

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

dist/index.cjs

Lines changed: 2 additions & 3 deletions
Large diffs are not rendered by default.

dist/index.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.esm.js.map

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/envs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const v = {
7272
.refine(
7373
(value) => {
7474
// Simplified regex to match both absolute and relative paths
75-
return /^(\.\/|\.\.\/|\/|[a-zA-Z]:\\|[a-zA-Z]:\/)?(([\w]+|-)[\\/]?)+$/.test(
75+
return /^(\.\/|\.\.\/|\/|[a-zA-Z]:\\|[a-zA-Z]:\/)?((?:[\w-]+)[\\/]?)+$/.test(
7676
value
7777
);
7878
},
@@ -115,7 +115,7 @@ const v = {
115115

116116
export const Config = z.object({
117117
// puppeteer
118-
PUPPETEER_TEMP_DIR: v.string(),
118+
PUPPETEER_TEMP_DIR: v.path(),
119119

120120
// highcharts
121121
HIGHCHARTS_VERSION: z

0 commit comments

Comments
 (0)