summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinilox <vinilox@vinilox.eu>2016-10-27 15:07:55 +0200
committerlouiz’ <louiz@louiz.org>2016-10-27 15:20:55 +0200
commit92d23bc007cde6d8abcd55bd16fd272692e89ed1 (patch)
treed473db752d3f46de062e2754168810bec45bdcb2
parentd529b137291ad6e51189ebb93cabd43b6fdd9421 (diff)
downloadpoezio-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.py2
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',