diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-26 09:29:36 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-26 09:29:36 +0000 |
commit | 0d73114ea7e7a1aa9cf1e391951a9522e129492d (patch) | |
tree | 0e103f277a547713363162b6c383614ae5a2b93c /sx.el | |
parent | 07a1456fe7a91d1589f689d40ac4391f35e695b9 (diff) | |
parent | eb6d7c4567313b5b4a729bd56f53c56ed2cad27c (diff) |
Merge pull request #98 from vermiculus/fix-at-mention-string
Fix at-mention string
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -199,10 +199,13 @@ Return the result of BODY." result)) (defun sx--user-@name (user) - "Get the `display_name' of USER prepended with @." + "Get the `display_name' of USER prepended with @. +In order to correctly @mention the user, all whitespace is +removed from the display name before it is returned." (sx-assoc-let user (when (stringp .display_name) - (concat "@" .display_name)))) + (concat "@" (replace-regexp-in-string + "[[:space:]]" "" .display_name))))) ;;; Assoc-let |