mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Rewrote comment to docstring
This commit is contained in:
parent
b0d0e65b42
commit
bc825941d8
1 changed files with 9 additions and 0 deletions
|
|
@ -263,6 +263,15 @@ class TextToBBCODEparser(TextToHTMLparser):
|
|||
"""
|
||||
|
||||
def convert_urls(self, text):
|
||||
"""
|
||||
Converts urls within text to bbcode style
|
||||
|
||||
Args:
|
||||
text (str): Text to parse
|
||||
|
||||
Returns:
|
||||
text (str): Processed text
|
||||
"""
|
||||
# Converts to bbcode styled urls
|
||||
return self.re_url.sub(r'[url=\1]\1[/url]\2', text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue