@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.
@@ -1816,8 +1816,9 @@ var truncateTextToFitWidth = function (text, maxWidth, measure) {
1816
1816
  return text.slice(0, lo) + '...';
1817
1817
  };
1818
1818
  export function isSafeUrl(href) {
1819
- if (/^[a-z][a-z0-9+.-]*:/i.test(href)) {
1820
- return /^(https?|mailto|tel|ftp):/i.test(href);
1819
+ var normalized = href.replace(/[\u0000-\u001F\u007F\s]+/g, '');
1820
+ if (/^[a-z][a-z0-9+.-]*:/i.test(normalized)) {
1821
+ return /^(https?|mailto|tel|ftp):/i.test(normalized);
1821
1822
  }
1822
1823
  return true;
1823
1824
  }