Skip to content

Commit

Permalink
fix: Repair data: urls from not triggering the baseURI test.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Apr 8, 2024
1 parent cc31b5f commit c26ab3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/getDataFromExternalSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const getDataFromExternalSources = (
ipfsGateway,
);
try {
if (/[=?/]$/.test(url)) {
if (!url.startsWith('data:') && /[=?/]$/.test(url)) {
// this URL is not verifiable and the URL ends with a / or ? or = meaning it's not a file
// and more likely to be some kind of directory or query BaseURI
return dataEntry;
Expand Down

0 comments on commit c26ab3e

Please sign in to comment.