mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Rewrote comment to docstring
This commit is contained in:
parent
8f2b61f41c
commit
db04b80e93
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