Skip to content

Commit 50d7834

Browse files
committed
chore: change the separator of the SAFE_PATHS environment variable to the default separator of the operating system platform (i.e., ; in Windows and : in other systems)
1 parent 86c127d commit 50d7834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constant/path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var Path = func() *path {
3838
}
3939

4040
var safePaths []string
41-
for _, safePath := range strings.Split(os.Getenv("SAFE_PATHS"), ":") {
41+
for _, safePath := range filepath.SplitList(os.Getenv("SAFE_PATHS")) {
4242
safePath = strings.TrimSpace(safePath)
4343
if len(safePath) == 0 {
4444
continue

0 commit comments

Comments
 (0)