aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sx.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx.el b/sx.el
index c460f62..4ef6caf 100644
--- a/sx.el
+++ b/sx.el
@@ -346,7 +346,7 @@ If ALIST doesn't have a `site' property, one is created using the
(rx "/questions/" (1+ digit) "/"
(1+ (not (any "/"))) "/"
;; User ID
- (group digit)
+ (optional (group digit))
(optional "/")
(group (or (sequence "#" (0+ any)) ""))
string-end) link))
@@ -358,7 +358,7 @@ If ALIST doesn't have a `site' property, one is created using the
;; Question ID
(group (1+ digit))
;; User ID
- "/" (1+ digit)
+ (optional "/" (1+ digit))
;; Answer or Comment ID
(group (or (sequence "#" (0+ any)) ""))
string-end) link)