@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/react.esm.js
CHANGED
|
@@ -9546,7 +9546,10 @@ const SvgImage = memo(({ url, width, height, fontColor }) => {
|
|
|
9546
9546
|
useEffect(() => () => {
|
|
9547
9547
|
setSvg(null);
|
|
9548
9548
|
}, []);
|
|
9549
|
-
|
|
9549
|
+
// Todo remove the test info
|
|
9550
|
+
console.info("svg", svg);
|
|
9551
|
+
const regexp = /<\/svg>\s*$/im;
|
|
9552
|
+
if (!regexp.test(svg))
|
|
9550
9553
|
return null;
|
|
9551
9554
|
return (jsx(StyledSvg, { "$width": width, "$height": height, "$fontColor": fontColor, dangerouslySetInnerHTML: { __html: svg } }));
|
|
9552
9555
|
});
|