changeset 472:04b629038256

urllog: Fix the Twitter title parsing.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 26 Oct 2018 15:42:28 +0300
parents 6ea3977f4460
children d155cec91375
files urllog.tcl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/urllog.tcl	Fri Oct 26 09:38:33 2018 +0300
+++ b/urllog.tcl	Fri Oct 26 15:42:28 2018 +0300
@@ -490,7 +490,7 @@
     # Get the document title, if any
     set urlTitle ""
 
-    if {[regexp -nocase -- "<meta name=\"twitter:title\" content=\"(.\*\?)\"\/>" $udata umatches urlTitle]} {
+    if {[regexp -nocase -- "<meta name=\"twitter:title\" content=\"(.\*\?)\"\/\?>" $udata umatches urlTitle]} {
       # ...
     } elseif {[regexp -nocase -- "<title.\*\?>(.\*\?)</title>" $udata umatches urlTitle]} {
       # ...