Add aesgcm:// urls to the /link plugin

This commit is contained in:
mathieui 2020-12-31 19:31:08 +01:00
parent aea95e4343
commit c9fe8f0737

View file

@ -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+))|(?:magnet:\?(?:\S+))\b',
url_pattern = re.compile(r'\b(?:http[s]?://(?:\S+))|(?:magnet:\?(?:\S+))|(?:aesgcm://(?:\Z+))\b',
re.I | re.U)
app_mapping = {
'Linux': 'xdg-open',