aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-toot.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 8d63fce..87b4afb 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -223,16 +223,16 @@ send.")
(defvar mastodon-toot-handle-regex
(concat
- ;; preceding space or bol [boundary doesn't work with @]
- "\\([\n\t ]\\|^\\)"
+ ;; preceding bracket, space or bol [boundary doesn't work with @]
+ "\\([(\n\t ]\\|^\\)"
"\\(?2:@[1-9a-zA-Z._-]+" ; a handle
"\\(@[^ \n\t]*\\)?\\)" ; with poss domain, * = allow only @
"\\b"))
(defvar mastodon-toot-tag-regex
(concat
- ;; preceding space or bol [boundary doesn't work with #]
- "\\([\n\t ]\\|^\\)"
+ ;; preceding bracket, space or bol [boundary doesn't work with #]
+ "\\([(\n\t ]\\|^\\)"
"\\(?2:#[1-9a-zA-Z_]+\\)" ; tag
"\\b")) ; boundary