gemcap-be-common 1.4.231 → 1.4.232

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.
@@ -14,6 +14,10 @@ const extractReferenceValue = (reference, key) => {
14
14
  let value = match[1].trim();
15
15
  // Remove trailing account markers like /AC- or /BC-
16
16
  value = value.split('/')[0].trim();
17
+ // Remove NOTPROVIDED if present
18
+ value = value.replace(/NOTPROVIDED/gi, '').trim();
19
+ // Collapse multiple spaces (incl. tabs) into a single space
20
+ value = value.replace(/\s{2,}/g, ' ');
17
21
  return value;
18
22
  };
19
23
  const convertBankReferenceToTransactionReference = (rawReference) => {
@@ -17,6 +17,12 @@ const extractReferenceValue = (reference: string, key: string): string => {
17
17
  // Remove trailing account markers like /AC- or /BC-
18
18
  value = value.split('/')[0].trim();
19
19
 
20
+ // Remove NOTPROVIDED if present
21
+ value = value.replace(/NOTPROVIDED/gi, '').trim();
22
+
23
+ // Collapse multiple spaces (incl. tabs) into a single space
24
+ value = value.replace(/\s{2,}/g, ' ');
25
+
20
26
  return value;
21
27
  };
22
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.231",
3
+ "version": "1.4.232",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {