@claritylabs/cl-sdk 3.0.25 → 3.0.27

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
@@ -3080,6 +3080,9 @@ function isNameCell(label, value) {
3080
3080
  if (/\b(coverage|coverage part|insuring agreement|description|item|name)\b/.test(normalizedLabel)) {
3081
3081
  return true;
3082
3082
  }
3083
+ if (/^column\s+1$/.test(normalizedLabel) && !/^(item\s+\d+|nwc-|iso-|cg |il |form\b|page\b)/i.test(normalizedValue)) {
3084
+ return true;
3085
+ }
3083
3086
  if (/^column\s+\d+$/.test(normalizedLabel) && /\b(coverage|sub[-\s]?limit|liability|expense|part\s+[a-z])\b/.test(normalizedValue)) {
3084
3087
  return true;
3085
3088
  }
@@ -3225,8 +3228,10 @@ function isOperationalCoverageRow(coverage) {
3225
3228
  const name = normalizeLabel(coverage.name);
3226
3229
  if (!hasCoverageLimitTerm(coverage.limits)) return false;
3227
3230
  if (/^(item\s+\d+|option:|annual policy premium|total premium|premium and payment)\b/i.test(coverage.name)) return false;
3231
+ if (/^coverage part\s+s\b/i.test(coverage.name)) return false;
3228
3232
  if (/^(nwc|iso|cg|il|acord)[-\s]?[a-z0-9]/i.test(coverage.name)) return false;
3229
3233
  if (/\b(forms?|endorsements?|premium|payment|terrorism risk insurance act|tria|erp option|bilateral discovery)\b/i.test(name)) return false;
3234
+ if (/\b(incurred in excess|shall erode|subject to|combined defense expenses)\b/i.test(name)) return false;
3230
3235
  if (coverage.name.split(/\s+/).length > 16 && !/\b(coverage|liability|sub[-\s]?limit|aggregate|each\s+(claim|loss|occurrence)|limit)\b/i.test(coverage.name)) {
3231
3236
  return false;
3232
3237
  }