rsnext/packages
OJ Kwon cad1200131
fix(next_core): align remove trailing slash (#57344)
### What

minor fix to match behavior to ae10b5c82b/packages/next/src/shared/lib/router/utils/remove-trailing-slash.ts (L2C4-L9)

as we're seeing a panic when route is /

```
Panic: PanicInfo { payload: Any { .. }, message: Some(byte index 1 is out of bounds of ``), location: Location { file: "packages/next-swc/crates/next-core/src/next_edge/route_regex.rs", line: 202, col: 59 }, can_unwind: true, force_no_backtrace: false }
Backtrace:    0: backtrace::backtrace::libunwind::trace
```

Closes WEB-1841
2023-10-24 19:56:55 +00:00
..
create-next-app v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
eslint-config-next v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
eslint-plugin-next v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
font v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next Get rid of semver from the server bundle (#57321) 2023-10-24 18:05:56 +00:00
next-bundle-analyzer v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-codemod v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-env v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-mdx v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-plugin-storybook v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-polyfill-module v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-polyfill-nomodule v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
next-swc fix(next_core): align remove trailing slash (#57344) 2023-10-24 19:56:55 +00:00
react-dev-overlay v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
react-refresh-utils v13.5.7-canary.23 2023-10-24 08:22:51 +00:00
third-parties v13.5.7-canary.23 2023-10-24 08:22:51 +00:00