@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 CHANGED
@@ -9548,7 +9548,10 @@ const SvgImage = React.memo(({ url, width, height, fontColor }) => {
9548
9548
  React.useEffect(() => () => {
9549
9549
  setSvg(null);
9550
9550
  }, []);
9551
- if (!svg?.endsWith("</svg>"))
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
  });