@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.
@@ -1647,7 +1647,7 @@ class RouterCore {
1647
1647
  return matches;
1648
1648
  }
1649
1649
  comparePaths(path1, path2) {
1650
- return path1.replace(/(.+)\/$/, "$1") === path2.replace(/(.+)\/$/, "$1");
1650
+ return path1.replace(/\/$/, "") === path2.replace(/\/$/, "");
1651
1651
  }
1652
1652
  }
1653
1653
  class SearchParamError extends Error {