Skip to content

Commit 8979216

Browse files
committed
release 1.2.12
1 parent 4104048 commit 8979216

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/react-file-based-routes",
3-
"version": "1.2.11",
3+
"version": "1.2.12",
44
"repository": "https://github.com/idrinth/react-file-based-routes",
55
"description": "A simple file based routing library, that does not force itself on you.",
66
"license": "MIT",

src/generate-folders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default (cwd: string, configuration: Configuration) => {
2121
return data;
2222
})();
2323
const matcher = cwd.includes('\\')
24-
? new RegExp(`="${cwd}\\\\${configuration.fileFinder.pagesRoot.replace(/\//, '\\\\')}\\\\([^"]*?)${configuration.fileFinder.fileName}"`, 'u')
24+
? new RegExp(`="${cwd.replace(/\\/ug, '\\\\')}\\\\${configuration.fileFinder.pagesRoot.replace(/\//, '\\\\')}\\\\([^"]*?)${configuration.fileFinder.fileName}"`, 'u')
2525
: new RegExp(`="${cwd}/${configuration.fileFinder.pagesRoot}/([^"]*?)${configuration.fileFinder.fileName}"`, 'u');
2626
const fileName = configuration.fileFinder.fileName.replace(/\.tsx$/, '-');
2727
const cssFiles = [];

0 commit comments

Comments
 (0)