From a2d526c4b12ffa1cece78be7e6bfedf0b2b60576 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 24 Jan 2015 01:01:37 -0200 Subject: Less demanding final regexp for questions. --- sx.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sx.el b/sx.el index e0609a7..26151b3 100644 --- a/sx.el +++ b/sx.el @@ -148,12 +148,7 @@ with a `link' property)." ;; From URL (string-match (rx "/questions/" ;; Question ID - (group-n 1 (+ digit)) "/" - ;; Optional question title - (optional (+ (not (any "/"))) "/") - ;; Garbage at the end - (optional (and (any "?#") (* any))) - string-end) + (group-n 1 (+ digit)) "/") link)) (push '(type . question) result))) (push (cons 'id (string-to-number (match-string-no-properties 1 link))) -- cgit v1.2.3