@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.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/utilities/utilities.js +3 -2
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/utilities/utilities.js +3 -2
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +3 -2
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
1820
|
-
|
|
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
|
}
|