mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-28 07:04:10 +00:00
fix: reset TEMPLATE_VAR_PATTERN lastIndex in URL validatio
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user