Skip to content

Commit

Permalink
Correct the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Apr 11, 2023
1 parent 25b9dbd commit f25de9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/explorerCommands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function newPackage(node?: DataNode): Promise<void> {
window.showErrorMessage("Failed to get the package path.");
return;
}
defaultValue = path.relative(packageRootPath, packagePath).replace(/[\\,/]/g, ".") + ".";
defaultValue = path.relative(packageRootPath, packagePath).replace(/[\\/]/g, ".") + ".";
} else {
return;
}
Expand Down

0 comments on commit f25de9d

Please sign in to comment.