aboutsummaryrefslogtreecommitdiff
path: root/sx-question-print.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-11 19:50:38 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-11 19:50:38 -0200
commit14f219c69039b681adbb0312973ae481b96a980e (patch)
tree10ce29258a22f8ea4d0239b05c7d6b693c912a2c /sx-question-print.el
parent5acb70ccce4be466b54e7d0a01df1010e8145aa0 (diff)
Hotfix: Less aggressive raw links
Diffstat (limited to 'sx-question-print.el')
-rw-r--r--sx-question-print.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index f6cd1dc..e120752 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -334,10 +334,10 @@ E.g.:
(rx (or (and "[" (group-n 1 (1+ (not (any "]")))) "]"
(or (and "(" (group-n 2 (1+ (not (any ")")))) ")")
(and "[" (group-n 3 (1+ (not (any "]")))) "]")))
- (group-n 4 (and (or (and "http" (opt "s") "://") "")
- (+ (any alnum "_%"))
+ (group-n 4 (and (and "http" (opt "s") "://") ""
+ (>= 2 (any lower numeric "_%"))
"."
- (+ (any alnum "/._%&#?=;"))))))
+ (>= 2 (any lower numeric "/._%&#?=;"))))))
"Regexp matching markdown links.")
(defun sx-question-mode--fill-and-fontify (text)