@xuda.io/runtime-bundle 1.0.909 → 1.0.911

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3569,7 +3569,7 @@ func.datasource.get_value = async function (SESSION_ID, fieldIdP, dsSessionP, ro
3569
3569
  };
3570
3570
 
3571
3571
  if (ret.value && typeof ret.value === 'string' && ret.type !== 'exp') {
3572
- if (/"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
3572
+ if (!ret.value.includes('<svg xmlns=') && /"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
3573
3573
  // if (/"/.test(ret.value) && ret.value.indexOf("\\") === -1)
3574
3574
  // ret.value = ret.value.replace(/"/g, '\\"');
3575
3575
  }
@@ -7620,7 +7620,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
7620
7620
  }
7621
7621
  if (typeof retP.value !== 'undefined') {
7622
7622
  var_Arr[key].type = retP.type;
7623
- var_Arr[key].value = typeof retP.value === 'string' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
7623
+ var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
7624
7624
  if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
7625
7625
  //get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
7626
7626
  var data = retP.prop;
@@ -3569,7 +3569,7 @@ func.datasource.get_value = async function (SESSION_ID, fieldIdP, dsSessionP, ro
3569
3569
  };
3570
3570
 
3571
3571
  if (ret.value && typeof ret.value === 'string' && ret.type !== 'exp') {
3572
- if (/"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
3572
+ if (!ret.value.includes('<svg xmlns=') && /"/.test(ret.value) && ret.value.indexOf('\\') === -1) ret.value = ret.value.replace(/"/g, '"');
3573
3573
  // if (/"/.test(ret.value) && ret.value.indexOf("\\") === -1)
3574
3574
  // ret.value = ret.value.replace(/"/g, '\\"');
3575
3575
  }
@@ -7620,7 +7620,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
7620
7620
  }
7621
7621
  if (typeof retP.value !== 'undefined') {
7622
7622
  var_Arr[key].type = retP.type;
7623
- var_Arr[key].value = typeof retP.value === 'string' ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
7623
+ var_Arr[key].value = typeof retP.value === 'string' && !retP.value.includes('<svg xmlns=') && retP.value.indexOf('\\') === -1 ? retP.value.replaceAll('"', '\\"') : retP.value; // new Apr 6 2025 fixing "\"how much?\""
7624
7624
  if ((val.value.indexOf('[') > -1) | (val.value.indexOf('.') > -1)) {
7625
7625
  //get values from array '@var==="sss" && @var_B==="sss" && @obj.property===5 && @objA["value"]===123 | @objB["value"].property===1234'
7626
7626
  var data = retP.prop;