link plugin: fix regex for aesgcm and add gemini&gopher
This commit is contained in:
parent
46d90bf832
commit
3b7e5f93bd
1 changed files with 11 additions and 2 deletions
|
@ -87,8 +87,17 @@ 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+))|(?:aesgcm://(?:\Z+))\b',
|
||||
re.I | re.U)
|
||||
url_pattern = re.compile(
|
||||
r'\b'
|
||||
'(?:http[s]?://(?:\S+))|'
|
||||
'(?:magnet:\?(?:\S+))|'
|
||||
'(?:aesgcm://(?:\S+))|'
|
||||
'(?:gopher://(?:\S+))|'
|
||||
'(?:gemini://(?:\S+))'
|
||||
'\b',
|
||||
re.I | re.U
|
||||
)
|
||||
|
||||
app_mapping = {
|
||||
'Linux': 'xdg-open',
|
||||
'Darwin': 'open',
|
||||
|
|
Loading…
Reference in a new issue