Skip to content

Commit

Permalink
feat: Changed image comparison logic. (#35)
Browse files Browse the repository at this point in the history
#DEV-11612

Co-authored-by: Pavel Bezliapovich <[email protected]>
  • Loading branch information
pbezliapovich and pbezliapovich authored Mar 28, 2024
1 parent 72a3163 commit 31766a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ImageNode extends TextNode {
private AttributesImpl attributes;

public ImageNode(TagNode parent, Attributes attrs) {
super(parent, "<img>" + attrs.getValue("src").toLowerCase() + "</img>");
super(parent, "<img>" + (attrs.getValue("md5") != null ? attrs.getValue("md5").toLowerCase() : attrs.getValue("src").toLowerCase()) + "</img>");
attributes = new AttributesImpl(attrs);
}

Expand Down

0 comments on commit 31766a8

Please sign in to comment.