diff options
author | Yuchen Pei <id@ypei.org> | 2024-12-26 21:44:19 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2024-12-26 21:44:19 +1100 |
commit | c78c62bd4a0eca87ae711d1efbd3f0cca46faf70 (patch) | |
tree | 0efdbfe5eb83b42d0e76c8c66f9273254f04c600 | |
parent | 4412f7351b66a11eadb5932d3a4a2be305eb5cd0 (diff) |
Adding a utility to guess that a url is a x/twitter post
-rw-r--r-- | exitter.el | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -575,6 +575,10 @@ Including ancestors and descendants, if any." .favorite_count ))) +(defun exitter-post-url-p (url) + (string-match-p "^/[^/]+/status/\\([0-9]+\\)" + (url-filename (url-generic-parse-url url)))) + (defun exitter-open-post (url) (interactive "sTwitter link: ") (let ((path-etc (url-filename (url-generic-parse-url url)))) |