diff --git a/data/tools/addon_manager/html.py b/data/tools/addon_manager/html.py index 41992fa9a6dd..eddb43c5eade 100755 --- a/data/tools/addon_manager/html.py +++ b/data/tools/addon_manager/html.py @@ -137,8 +137,8 @@ def w(x): ) % (icon, imgurl)) described = v("description", "(no description)") if described != "(no description)": - described = re.sub(r'(?])http://[\w./?&=%~-]+', r'\g<0>', described) - described = re.sub(r'(?"/])(forums?|r|R|wiki)\.wesnoth\.org[\w./?&=%~-]+', r'\g<0>""', described) + described = re.sub(r'(?])http://([\w/=%~-]|[.?&]\w)+', r'\g<0>', described) + described = re.sub(r'(?"/])(forums?|r|R|wiki)\.wesnoth\.org([\w/=%~-]|[.?&]\w)*', r'\g<0>', described) w('
%s
%s
' % ( name, described)) w("%s
" % name)