Skip to content

Commit

Permalink
fix(isDataURI): add underscore to RegExp
Browse files Browse the repository at this point in the history
also match valid MIME types with an underscore in their name

fixes validatorjs#2121
  • Loading branch information
pano9000 committed Dec 6, 2022
1 parent e446865 commit c06fb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isDataURI.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assertString from './util/assertString';

const validMediaType = /^[a-z]+\/[a-z0-9\-\+\.]+$/i;
const validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;

const validAttribute = /^[a-z\-]+=[a-z0-9\-]+$/i;

Expand Down

0 comments on commit c06fb15

Please sign in to comment.