Skip to content

Commit

Permalink
Update path_default_file.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx authored Oct 17, 2023
1 parent c3a6b3f commit 62ebc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/path_default_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @returns The new path with the default file
*/
export function pathDefaultFile(path : string, defaultFile : string) : string {
const regExMatchValidPath = /(.+(?<!\.[^/]+)$)/
const regExMatchValidPath = /(.*?)\/?(?<!.+\.[^/]+)$/
return path.replace(
regExMatchValidPath,
(
Expand Down

0 comments on commit 62ebc15

Please sign in to comment.