Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: add to parameters regex (#4238)

Muhammed Ajmal M5bccab0aa0e8
diff --git a/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts b/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts
index 53f77afa4..211a5a02b 100644
--- a/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts
+++ b/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts
@@ -61,7 +61,7 @@ export class ParameterMenuService extends Service implements ContextMenu {
text = url.search.slice(1)
}
- const regex = /(\w+)=(\w+)/g
+ const regex = /([^&=]+)=([^&]+)/g
const matches = text.matchAll(regex)
const params: Param = {}