Skip to content

Commit 9a8d27e

Browse files
committed
fix: preserve hyphens in mise-tools symlink names (#212)
1 parent b707fcd commit 9a8d27e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/miseService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ export class MiseService {
12071207
"mise-tools",
12081208
);
12091209

1210-
const sanitizedBinName = binName.replace(/[^a-zA-Z0-9.]/g, "_");
1210+
const sanitizedBinName = binName.replace(/[^a-zA-Z0-9.-]/g, "_");
12111211

12121212
await mkdirp(toolsPaths);
12131213
const linkPath = path.join(toolsPaths, sanitizedBinName);

0 commit comments

Comments
 (0)