aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-30 11:51:16 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-30 11:51:16 +0200
commit113727ccde7d753859d075200a807f1f81ac2481 (patch)
tree322a97d9472e30ab19e80386442ef63caa67a8dc
parent5e8774d67fff65bd7fd3e9caa4ca887690afcc92 (diff)
handle 's after tag or mention
-rw-r--r--lisp/mastodon-toot.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 4793dd9..84248e5 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -219,14 +219,14 @@ send.")
"\\([(\n\t ]\\|^\\)"
"\\(?2:@[0-9a-zA-Z._-]+" ; a handle
"\\(@[^ \n\t]*\\)?\\)" ; with poss domain, * = allow only @
- "\\b"))
+ "\\(\\b\\|'\\)")) ; boundary or ' char
(defvar mastodon-toot-tag-regex
(concat
;; preceding bracket, space or bol [boundary doesn't work with #]
"\\([(\n\t ]\\|^\\)"
"\\(?2:#[0-9a-zA-Z_]+\\)" ; tag
- "\\b")) ; boundary
+ "\\(\\b\\|'\\)")) ; boundary or ' char
(defvar mastodon-toot-url-regex
;; adapted from ffap-url-regexp