Merge pull request #6054 from barelyhuman/fix/regex-index

fix: remove global flag from TEMPLATE_VAR_PATTERN to avoid falsey matches
This commit is contained in:
Bijin A B
2025-11-10 19:25:17 +05:30
committed by GitHub

View File

@@ -14,7 +14,7 @@ import { useSelector } from 'react-redux';
import { getAllVariables, getGlobalEnvironmentVariables } from 'utils/collections/index';
import { resolveInheritedAuth } from './utils/auth-utils';
const TEMPLATE_VAR_PATTERN = /\{\{([^}]+)\}\}/g;
const TEMPLATE_VAR_PATTERN = /\{\{([^}]+)\}\}/;
const validateURLWithVars = (url) => {
const isValid = isValidUrl(url);