diff options
author | Vinilox <vinilox@vinilox.eu> | 2016-10-27 15:07:55 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-27 15:20:55 +0200 |
commit | 92d23bc007cde6d8abcd55bd16fd272692e89ed1 (patch) | |
tree | d473db752d3f46de062e2754168810bec45bdcb2 | |
parent | d529b137291ad6e51189ebb93cabd43b6fdd9421 (diff) | |
download | poezio-92d23bc007cde6d8abcd55bd16fd272692e89ed1.tar.gz poezio-92d23bc007cde6d8abcd55bd16fd272692e89ed1.tar.bz2 poezio-92d23bc007cde6d8abcd55bd16fd272692e89ed1.tar.xz poezio-92d23bc007cde6d8abcd55bd16fd272692e89ed1.zip |
Link plugin : add support for magnets links.
-rw-r--r-- | plugins/link.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/link.py b/plugins/link.py index 2c34232c..c8c75918 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -87,7 +87,7 @@ from poezio.xhtml import clean_text from poezio import common from poezio import tabs -url_pattern = re.compile(r'\b(http[s]?://(?:\S+))\b', re.I|re.U) +url_pattern = re.compile(r'\b(?:http[s]?://(?:\S+))|(?:magnet:\?(?:\S+))\b', re.I|re.U) app_mapping = { 'Linux': 'xdg-open', 'Darwin': 'open', |