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.
- package/package.json +1 -1
- package/utils.js +2 -2
package/package.json
CHANGED
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 ? '
|
|
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) {
|