@fluentui/react-charting 5.25.8 → 5.25.9

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.
@@ -1883,8 +1883,9 @@ var truncateTextToFitWidth = function (text, maxWidth, measure) {
1883
1883
  return text.slice(0, lo) + '...';
1884
1884
  };
1885
1885
  function isSafeUrl(href) {
1886
- if (/^[a-z][a-z0-9+.-]*:/i.test(href)) {
1887
- return /^(https?|mailto|tel|ftp):/i.test(href);
1886
+ var normalized = href.replace(/[\u0000-\u001F\u007F\s]+/g, '');
1887
+ if (/^[a-z][a-z0-9+.-]*:/i.test(normalized)) {
1888
+ return /^(https?|mailto|tel|ftp):/i.test(normalized);
1888
1889
  }
1889
1890
  return true;
1890
1891
  }