mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
Fix clip-path issue on react
This commit is contained in:
committed by
GitHub
parent
2af89d3578
commit
f28f171d3b
@@ -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="')
|
||||
|
||||
Reference in New Issue
Block a user