@flusys/nestjs-entity-builder 9.1.2 → 9.2.0

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.
package/fesm/857.js CHANGED
@@ -604,7 +604,8 @@ class RuleEngineService {
604
604
  const text = this.toText(value);
605
605
  if (text === null) return null;
606
606
  const needle = this.toText(search) ?? '';
607
- return needle ? text.replaceAll(needle, this.toText(replacement) ?? '') : text;
607
+ const replacementText = this.toText(replacement) ?? '';
608
+ return needle ? text.replaceAll(needle, ()=>replacementText) : text;
608
609
  }
609
610
  case 'TO_NUMBER':
610
611
  {