Skip to content

Commit 7166a1c

Browse files
pgoldthofilfreire
authored andcommitted
Support for colon after a path parameter
1 parent 55ef895 commit 7166a1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/insomnia/src/models/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export interface RequestPathParameter {
199199
value: string;
200200
}
201201

202-
export const PATH_PARAMETER_REGEX = /\/:[^/?#]+/g;
202+
export const PATH_PARAMETER_REGEX = /\/:[^/?#:]+/g;
203203

204204
export const getPathParametersFromUrl = (url: string): string[] => {
205205
// Find all path parameters in the URL. Path parameters are defined as segments of the URL that start with a colon.

0 commit comments

Comments
 (0)