Skip to content

Commit

Permalink
Support for colon after a path parameter (#7200)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoldtho authored Mar 27, 2024
1 parent 55ef895 commit ada2414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/insomnia/src/models/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export interface RequestPathParameter {
value: string;
}

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

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

0 comments on commit ada2414

Please sign in to comment.