mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-07 14:08:38 +00:00
fix/variables highlighting (#2502)
* js highlighting fix, only highlight path params pattern in url bar * path param pattern matching validation update * path param tooltip validation update
This commit is contained in:
@@ -31,8 +31,8 @@ if (!SERVER_RENDERED) {
|
||||
if (str.startsWith('{{')) {
|
||||
variableName = str.replace('{{', '').replace('}}', '').trim();
|
||||
variableValue = interpolate(get(options.variables, variableName), options.variables);
|
||||
} else if (str.startsWith(':')) {
|
||||
variableName = str.replace(':', '').trim();
|
||||
} else if (str.startsWith('/:')) {
|
||||
variableName = str.replace('/:', '').trim();
|
||||
variableValue =
|
||||
options.variables && options.variables.pathParams ? options.variables.pathParams[variableName] : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user