From ada241423189a48b8528fff95a9806d13b88415e Mon Sep 17 00:00:00 2001 From: Peter Goldthorp Date: Wed, 27 Mar 2024 10:36:16 -0400 Subject: [PATCH] Support for colon after a path parameter (#7200) --- packages/insomnia/src/models/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia/src/models/request.ts b/packages/insomnia/src/models/request.ts index edfaad8adab..3168669b18e 100644 --- a/packages/insomnia/src/models/request.ts +++ b/packages/insomnia/src/models/request.ts @@ -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.