diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js index d9b9a36bd..ea5939540 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js @@ -19,7 +19,6 @@ const TEMPLATE_VAR_PATTERN = /\{\{([^}]+)\}\}/; const validateURLWithVars = (url) => { const isValid = isValidUrl(url); const hasMissingInterpolations = TEMPLATE_VAR_PATTERN.test(url); - TEMPLATE_VAR_PATTERN.lastIndex = 0; return isValid && !hasMissingInterpolations; };