feat: added base64 url images lint
Signed-off-by: Boon Boonsiri <bboonsir@uwaterloo.ca>
This commit is contained in:
parent
df5ce211ac
commit
df45038e80
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue