aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-12-26 17:35:25 -0500
committerSean Allred <code@seanallred.com>2014-12-26 17:35:25 -0500
commitb87861b6187ef4395e77e34882401f7fb28dfa26 (patch)
treeb04018c2a1d3495c675d645a81024664447a71f2
parent970acd6f7e5920ed6492a4a74e65eae9e29838b6 (diff)
Make user IDs optional when parsing from link
-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)