From df45038e80c932b1b19e05910664fea7c9483f4b Mon Sep 17 00:00:00 2001 From: Boon Boonsiri Date: Wed, 11 Oct 2023 14:10:16 -0400 Subject: [PATCH] feat: added base64 url images lint Signed-off-by: Boon Boonsiri --- src/serve_rendered.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serve_rendered.js b/src/serve_rendered.js index b1f5e96..78648d5 100644 --- a/src/serve_rendered.js +++ b/src/serve_rendered.js @@ -279,7 +279,8 @@ const extractMarkersFromQuery = (query, options, transformer) => { let iconURI = markerParts[1]; // Check if icon is served via http otherwise marker icons are expected to // be provided as filepaths relative to configured icon path - const isRemoteURL = iconURI.startsWith('http://') || iconURI.startsWith('https://'); + const isRemoteURL = + iconURI.startsWith('http://') || iconURI.startsWith('https://'); const isDataURL = iconURI.startsWith('data:'); if (!(isRemoteURL || isDataURL)) { // Sanitize URI with sanitize-filename