Skip to content

Commit 5145217

Browse files
committed
fix(remix): fixed remix double slash regex
1 parent 21357bb commit 5145217

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

packages/routes-gen-remix/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @routes-gen/remix
22

3+
## 0.3.2
4+
5+
### Patch Changes
6+
7+
- Fixed Remix driver double slash regex.
8+
39
## 0.3.1
410

511
### Patch Changes

packages/routes-gen-remix/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@routes-gen/remix",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"license": "MIT",

packages/routes-gen-remix/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const routes: Driver["routes"] = async () =>
4343
path: (path.endsWith("/") && path !== "/"
4444
? path.slice(0, -1)
4545
: path
46-
).replace(/\/\//g, "/"),
46+
).replace(/\/\/+/g, '/'),
4747
},
4848
...(item.children ? parseRoutes(item.children, `${path}/`) : []),
4949
];

0 commit comments

Comments
 (0)