We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3e76e commit a7e721eCopy full SHA for a7e721e
packages/renderless/src/image/index.ts
@@ -185,7 +185,7 @@ export const mounted =
185
}
186
187
export const filterImageUrl = (props) => () => {
188
- const isBase64 = /^data:(image|application)\/(png|jpg|jpeg|gif|octet-stream);base64,([a-zA-Z0-9+/]+={0,2})/
+ const isBase64 = /^data:(image|application)\/(png|jpg|jpeg|gif|octet-stream|svg\+xml);base64,([a-zA-Z0-9+/]+={0,2})/
189
190
return isBase64.test(props.src) ? props.src : xss.filterUrl(props.src)
191
0 commit comments