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.
2 parents c4218ea + 364eefa commit b2a3531Copy full SHA for b2a3531
apps/web/src/utils/isDataUri.ts
@@ -3,5 +3,5 @@
3
* @see {@link https://www.rfc-editor.org/rfc/rfc2397}
4
*/
5
export default function isDataURI(uri: string): boolean {
6
- return /data:(image\/(?:\w|-)+)(;?\w+=[\w-]+)*(;base64)?,.*/gu.test(uri)
+ return /data:(image\/(?:\w|-)+)(;?\w+=\w+)*(;base64)?,.*/gu.test(uri)
7
}
0 commit comments