Fix clip-path issue on react

This commit is contained in:
Kristopher Pamplona Ong
2025-09-27 04:34:20 +08:00
committed by GitHub
parent 2af89d3578
commit f28f171d3b
+1
View File
@@ -15,6 +15,7 @@ export const parseReactSvgContent = async ({
.replace("<svg", "<svg {...props}")
.replace(/class="/g, 'className="')
.replace(/clip-rule="/g, 'clipRule="')
.replace(/clip-path="/g, 'clipPath="')
.replace(/fill-rule="/g, 'fillRule="')
.replace(/stroke-width="/g, 'strokeWidth="')
.replace(/stroke-linecap="/g, 'strokeLinecap="')