From 45afa5509a880ac9c6af3fbf868b4eb366314b74 Mon Sep 17 00:00:00 2001 From: Zed Date: Wed, 3 Jul 2019 10:00:27 +0200 Subject: [PATCH] Fix parsing old gifs --- src/parserutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parserutils.nim b/src/parserutils.nim index 0070127..315c4f0 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -7,7 +7,7 @@ from q import nil const thumbRegex = re".+:url\('([^']+)'\)" - gifRegex = re".+thumb/([^\.']+)\.jpg.*" + gifRegex = re".+thumb/([^\.']+)\.[jpng].*" proc selectAll*(node: XmlNode; selector: string): seq[XmlNode] = if node == nil: return