Mike Fix
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lib/index.mjs
|
|
@ -29,7 +29,7 @@ const config = { |
|
|
|
//
|
|
|
|
|
|
|
|
const BAD_PROTO_RE = /^(vbscript|javascript|file|data):/ |
|
|
|
const GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/ |
|
|
|
const GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|svg\+xml|webp);/ |
|
|
|
|
|
|
|
function validateLink (url) { |
|
|
|
// url should be normalized at this point, and existing entities are decoded
|
|
|
|