saasufy-components 5.8.0 → 6.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "5.8.0",
3
+ "version": "6.0.0",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils.js CHANGED
@@ -232,7 +232,7 @@ let templateFormatters = {
232
232
  return list.map(item => item[field]).join(sep);
233
233
  },
234
234
  combineFilters: (filterMap, useOr) => {
235
- return Object.values(filterMap || {}).join(useOr ? ' %OR% ' : ' %AND% ');
235
+ return Object.values(filterMap || {}).join(useOr ? ' ~OR~ ' : ' ~AND~ ');
236
236
  },
237
237
  computeId,
238
238
  safeString: toSafeHTML
@@ -373,7 +373,7 @@ export function generateRandomHexString(byteLength) {
373
373
  }).join('');
374
374
  }
375
375
 
376
- export const fieldPartsRegExp = /("[^"]*"|'[^']*'|\([^)]*\)|[^,()"']+)+/g;
376
+ export const fieldPartsRegExp = /((^|(?<=,))((?=,)|$)|"[^"]*"|'[^']*'|\([^)]*\)|[^,()"']+)+/g
377
377
  export const quotedContentRegExp = /^\s*["']?(.*?)["']?\s*$/;
378
378
 
379
379
  export function toBoolean(value) {