diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-21 21:47:42 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-21 21:48:20 +0200 |
commit | 4e9b30be12906b28fb7140f5d7b6ed98ac5f72aa (patch) | |
tree | 938fa96407086fe92b4032aa8c7f0f9da1d07e0a | |
parent | b9e06282c88ffc3f9d3d08292a31c3dd157fb149 (diff) |
allow zeroes in handle/tag regexes!
-rw-r--r-- | lisp/mastodon-toot.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index e7cf22c..e3ef2ca 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -217,7 +217,7 @@ send.") (concat ;; preceding bracket, space or bol [boundary doesn't work with @] "\\([(\n\t ]\\|^\\)" - "\\(?2:@[1-9a-zA-Z._-]+" ; a handle + "\\(?2:@[0-9a-zA-Z._-]+" ; a handle "\\(@[^ \n\t]*\\)?\\)" ; with poss domain, * = allow only @ "\\b")) @@ -225,7 +225,7 @@ send.") (concat ;; preceding bracket, space or bol [boundary doesn't work with #] "\\([(\n\t ]\\|^\\)" - "\\(?2:#[1-9a-zA-Z_]+\\)" ; tag + "\\(?2:#[0-9a-zA-Z_]+\\)" ; tag "\\b")) ; boundary (defvar mastodon-toot-mode-map |