mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 23:54:24 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user