Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions e2e/react-start/basic/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ const outDir = process.env.E2E_DIST_DIR ?? 'dist'
const startModeConfig = getStartModeConfig()

export default defineConfig({
plugins: [
pluginReact(),
tanstackStart(startModeConfig),
],
plugins: [pluginReact(), tanstackStart(startModeConfig)],
output: {
distPath: {
root: outDir,
Expand Down
10 changes: 10 additions & 0 deletions packages/router-core/tests/new-process-route-tree.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,16 @@ describe('findRouteMatch', () => {
const tree = makeTree(['/{$}/c/file'])
expect(findRouteMatch('/a/b/c/file', tree)?.route.id).toBe('/{$}/c/file')
})

it.fails('matches U+0130 wildcard suffixes case-insensitively', () => {
// U+0130 is currently the only character whose default lowercase mapping
// changes UTF-16 length, so its folded length cannot index the raw URL.
const tree = makeTree(['/{$}İ'])
expect(findRouteMatch('/valueİ', tree)?.rawParams).toEqual({
'*': 'value',
_splat: 'value',
})
})
it('multi-segment wildcard w/ prefix and suffix', () => {
const tree = makeTree(['/file{$}end'])
expect(findRouteMatch('/file/a/b/c/end', tree)?.route.id).toBe(
Expand Down
Loading