mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
Added comment
This commit is contained in:
parent
49dbc26297
commit
4ac799ff50
@ -45,6 +45,8 @@ const compileJsExpression = (expr) => {
|
||||
globals: globals.map((name) => ` ${name} = ${name} ?? globalThis.${name};`).join('')
|
||||
};
|
||||
|
||||
// If expr contains an hyphen and has dotted identifiers, we need to adjust fieldnames
|
||||
// to use square bracket access to the property
|
||||
if (expr.indexOf('-') > 0 && expr.indexOf('.') > 0) {
|
||||
let _expr = '';
|
||||
expr.split('.').forEach((_part, index) => {
|
||||
|
Loading…
Reference in New Issue
Block a user