We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe493e commit 465007aCopy full SHA for 465007a
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\/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})/
+ const isBase64 = /^data:(image|application)\/(png|jpg|jpeg|gif|octet-stream);base64,([a-zA-Z0-9+/]+={0,2})/
189
190
return isBase64.test(props.src) ? props.src : xss.filterUrl(props.src)
191
0 commit comments