diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-15 14:28:45 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-15 14:28:45 -0200 |
commit | 96e421160c5e682cedb8786b8a4bdbf59d7790d5 (patch) | |
tree | 6e59aff330997abaaf1eb2babdc4bf75b5becabb /sx.el | |
parent | 028d30609b6109b682308c405b586e1eebe65972 (diff) |
Add comment support on sx--link-to-data
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -93,6 +93,17 @@ with a `link' property)." (let ((result (list (cons 'site_par (sx--site link))))) ;; Try to strip a question or answer ID (when (or + ;; Comment + (and (string-match + ;; From inbox items + (rx "/posts/comments/" + ;; Comment ID + (group-n 1 (+ digit)) + ;; Stuff at the end + (or (sequence (any "?#") (* any)) "") + string-end) + link) + (push '(type . comment) result)) ;; Answer (and (or (string-match ;; From 'Share' button |