@optimiser/common 1.0.441 → 1.0.442

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.
@@ -2412,6 +2412,13 @@ function FilterConditions(condition, match, fields) {
2412
2412
  case "textarea":
2413
2413
  obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // [Rishi: QPC-10169] Escape string special characters
2414
2414
  break;
2415
+ case "lookup":
2416
+ case "multilookup":
2417
+ // escape special characters for CONTAINS operator [Ravi Mishra: QPC-10750]
2418
+ if (obj.Operator === "CONTAINS") {
2419
+ obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2420
+ }
2421
+ break;
2415
2422
  }
2416
2423
  }
2417
2424
  // Or Condition code in NOT_CONTAINS filter was added by Shahzaib for QPC-6368
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.441",
3
+ "version": "1.0.442",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {