@evergis/react 3.1.17 → 3.1.18
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.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +4 -1
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9548,7 +9548,10 @@ const SvgImage = React.memo(({ url, width, height, fontColor }) => {
|
|
|
9548
9548
|
React.useEffect(() => () => {
|
|
9549
9549
|
setSvg(null);
|
|
9550
9550
|
}, []);
|
|
9551
|
-
|
|
9551
|
+
// Todo remove the test info
|
|
9552
|
+
console.info("svg", svg);
|
|
9553
|
+
const regexp = /<\/svg>\s*$/im;
|
|
9554
|
+
if (!regexp.test(svg))
|
|
9552
9555
|
return null;
|
|
9553
9556
|
return (jsxRuntime.jsx(StyledSvg, { "$width": width, "$height": height, "$fontColor": fontColor, dangerouslySetInnerHTML: { __html: svg } }));
|
|
9554
9557
|
});
|