@claritylabs/cl-sdk 3.1.13 → 3.1.14

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/dist/index.mjs CHANGED
@@ -10888,7 +10888,8 @@ function appendDistinctText(base, addition) {
10888
10888
  if (!current) return next || void 0;
10889
10889
  if (!next) return current;
10890
10890
  if (current.toLowerCase().includes(next.toLowerCase())) return current;
10891
- const delimiter = /(?:[/(:;-]|,\s*)$/.test(current) || /^[a-z]+$/i.test(next) ? " " : " / ";
10891
+ const joinsWithSpace = /(?:[/(:;-]|,\s*)$/.test(current) || /\b(?:part of|including|subject to|not in addition to)$/i.test(current) || /^(?:aggregate|claim|loss|proceeding|occurrence|each\s+(?:claim|loss|proceeding|occurrence)|coverage\s+part\b)/i.test(next);
10892
+ const delimiter = joinsWithSpace ? " " : " / ";
10892
10893
  return cleanText(`${current}${delimiter}${next}`, current);
10893
10894
  }
10894
10895
  function mergedBbox(nodes) {