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 941abe1 commit b685d55Copy full SHA for b685d55
1 file changed
src/lib/isDataURI.js
@@ -22,9 +22,10 @@ export default function isDataURI(str) {
22
return false;
23
}
24
for (let i = 0; i < attributes.length; i++) {
25
- if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {
26
- // ok
27
- } else if (!validAttribute.test(attributes[i])) {
+ if (
+ !(i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') &&
+ !validAttribute.test(attributes[i])
28
+ ) {
29
30
31
0 commit comments