Skip to content

Commit

Permalink
fix images urls with #
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Dec 24, 2023
1 parent dfc2290 commit e5f572a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/ui/content/content_decoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,13 @@ class ContentDecoder {
}

var strs = path.split("?");
var index = strs[0].lastIndexOf(".");
if (index == -1) {
var strs2 = strs[0].split("#");
var index = strs2[0].lastIndexOf(".");
if (index == -1) {
return null;
}

path = strs[0];
path = strs2[0];
var n = path.substring(index);
n = n.toLowerCase();

Expand Down

0 comments on commit e5f572a

Please sign in to comment.