Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
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.tsindex 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 = /([^&=]+)=([^&]+)/gconst matches = text.matchAll(regex)const params: Param = {}