Skip to content

Commit

Permalink
Add ircs as an supported protocol
Browse files Browse the repository at this point in the history
InterWiki links like [ircs://irc.libera.chat/ubuntuusers #ubuntuusers]
didn’t work because ircs wasn’t interpreted as an protocol.

This commit changes the regex

r'(?:(?:https?|ftps?|file|ssh|mms|svn(?:\+ssh)?|git|dict|nntp|irc|'

to

r'(?:(?:https?|ftps?|file|ssh|mms|svn(?:\+ssh)?|git|dict|nntp|ircs?|'

which allows using both irc:// and ircs:// in InterWiki links.
  • Loading branch information
KaiserBarbarossa authored and chris34 committed Jun 20, 2021
1 parent 9bd0a3f commit ef1c986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inyoka/markup/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, regexp, token=None, enter=None, silententer=None,
# in use (like git or irc)
_url_pattern = (
# urls with netloc
r'(?:(?:https?|ftps?|file|ssh|mms|svn(?:\+ssh)?|git|dict|nntp|irc|'
r'(?:(?:https?|ftps?|file|ssh|mms|svn(?:\+ssh)?|git|dict|nntp|ircs?|'
r'rsync|smb|apt)://|'
# urls without netloc
r'(?:mailto|telnet|s?news|sips?|skype|apt):)'
Expand Down

0 comments on commit ef1c986

Please sign in to comment.