We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antfu
Learn more about funding links in repositories.
Report abuse
1 parent 902e2b9 commit 5668fbbCopy full SHA for 5668fbb
src/core/compilers/solid.ts
@@ -1,6 +1,6 @@
1
import type { Compiler } from './types'
2
3
export const SolidCompiler = ((svg: string) => {
4
- const svgWithProps = svg.replace(/([{}])/g, '{\'$1\'}').replace(/(?<=<svg.*?)(>)/i, '{...props}>')
+ const svgWithProps = svg.replace(/([{}])/g, '{\'$1\'}').replace(/(?<=<svg[\s\S]*?)(>)/i, '{...props}>')
5
return `export default (props = {}) => ${svgWithProps}`
6
}) as Compiler
0 commit comments