is-data-uri-resource.js 190 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 var DATA_URI_PATTERN = /^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/; function isDataUriResource(uri) { return DATA_URI_PATTERN.test(uri); } module.exports = isDataUriResource;