Skip to content

Commit

Permalink
ignore base64 encoded images
Browse files Browse the repository at this point in the history
  • Loading branch information
AwesomeDog committed Feb 1, 2024
1 parent e00bcc1 commit 81b00c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "awesome-image",
"name": "Awesome Image",
"version": "0.1.2",
"version": "0.1.3",
"minAppVersion": "0.15.0",
"description": "One-stop solution for image management.",
"author": "AwesomeDog",
Expand Down
5 changes: 4 additions & 1 deletion src/org/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export async function replaceAsync(str: any, regex: any, asyncFn: any) {
}

export function isUrl(link: string) {
if (link.startsWith('data:image')) {
return false;
}
try {
return Boolean(new URL(link));
} catch (_) {
Expand Down Expand Up @@ -114,4 +117,4 @@ export function arraybufferEqual(buf1: ArrayBuffer | null, buf2: ArrayBuffer | n
if (dv1[i] != dv2[i]) return false;
}
return true;
}
}
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"0.1.0": "0.15.0",
"0.1.1": "0.15.0",
"0.1.2": "0.15.0"
"0.1.2": "0.15.0",
"0.1.3": "0.15.0"
}

0 comments on commit 81b00c9

Please sign in to comment.