preview interactiveobjects in scenario module
This commit is contained in:
@@ -126,11 +126,14 @@ const Utils = {
|
||||
return string && string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||
},
|
||||
|
||||
toSafeJSON(data){
|
||||
data = Utils.deepMerge({}, data, (k, v)=>{
|
||||
toSafeObject(data){
|
||||
return Utils.deepMerge({}, data, (k, v)=>{
|
||||
return k.startsWith('__') ? undefined : v;
|
||||
})
|
||||
return JSON.stringify(data);
|
||||
},
|
||||
|
||||
toSafeJSON(data){
|
||||
return JSON.stringify(Utils.toSafeObject(data));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user