Skip to content

Commit 896f6fc

Browse files
chore(segue): fix a regex to match full param name
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f8f187d commit 896f6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/internal/fulfilStoryboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function replaceSegues(
135135
close: {
136136
action: "history.push",
137137
args: [
138-
`<% \`${routeParent.path.replace(/:(\w)+/g, "${PATH.$1}")}\` %>`,
138+
`<% \`${routeParent.path.replace(/:(\w+)/g, "${PATH.$1}")}\` %>`,
139139
],
140140
},
141141
},

0 commit comments

Comments
 (0)