axidio-styleguide-library1-v2 0.2.44 → 0.2.46

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.
@@ -9069,7 +9069,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9069
9069
  let hasDateValues = false;
9070
9070
  textNodes.each(function (d) {
9071
9071
  // Check for date values using both Date.parse and regex for date format
9072
- const isDateString = !isNaN(Date.parse(d)) || /^\d{1,4}[-\/]\d{1,2}([-\/]\d{1,4})?$/.test(d);
9072
+ const isDateString = /^\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4}$/.test(d.trim()) ||
9073
+ /^(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})\s*[-–]\s*(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})$/.test(d.trim());
9073
9074
  if (!hasDateValues && isDateString) {
9074
9075
  hasDateValues = true;
9075
9076
  }