Commit ea95e1a
committed
fix(@angular/ssr): remove stateful flag from URL_PARAMETER_REGEXP
Removes the stateful `/g` flag from `URL_PARAMETER_REGEXP`. Previously, calling `.test()` on the global regular expression advanced its internal `lastIndex` property. This caused subsequent evaluations in the route extraction pipeline to silently fail to match, skipping `getPrerenderParams` for parameterized routes.
Closes #33154
(cherry picked from commit 0fdcde5)1 parent 3829508 commit ea95e1aCopy full SHA for ea95e1a
1 file changed
+8-3Lines changed: 8 additions & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/angular/ssr/src/routes
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/angular/ssr/src/routes/ng-routes.ts
Copy file name to clipboardExpand all lines: packages/angular/ssr/src/routes/ng-routes.ts+8-3Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | | - |
| 77 | + |
78 | 78 | |
79 | | - |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
80 | 85 | |
81 | 86 | |
82 | 87 | |
| ||
464 | 469 | |
465 | 470 | |
466 | 471 | |
467 | | - |
| 472 | + |
468 | 473 | |
469 | 474 | |
470 | 475 | |
|
0 commit comments