@tanstack/router-core 1.129.2 → 1.129.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.129.2",
3
+ "version": "1.129.3",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1370,7 +1370,7 @@ export class RouterCore<
1370
1370
  }
1371
1371
 
1372
1372
  private comparePaths(path1: string, path2: string) {
1373
- return path1.replace(/(.+)\/$/, '$1') === path2.replace(/(.+)\/$/, '$1')
1373
+ return path1.replace(/\/$/, '') === path2.replace(/\/$/, '')
1374
1374
  }
1375
1375
 
1376
1376
  buildLocation: BuildLocationFn = (opts) => {