Mercurial > kallithea
changeset 2965:d0553004e73d beta
fixed #623: Lang meta-tag doesn't work with C#/C++
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 27 Oct 2012 00:09:07 +0200 |
parents | cc21f0495d3a |
children | 566f0166f21e |
files | rhodecode/lib/helpers.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Sat Oct 27 17:24:08 2012 +0900 +++ b/rhodecode/lib/helpers.py Sat Oct 27 00:09:07 2012 +0200 @@ -465,7 +465,7 @@ '<div class="metatag" tag="license"><a href="http:\/\/www.opensource.org/licenses/\\1">\\1</a></div>', value) value = re.sub(r'\[(requires|recommends|conflicts|base)\ \=\>\ *([a-zA-Z\-\/]*)\]', '<div class="metatag" tag="\\1">\\1 => <a href="/\\2">\\2</a></div>', value) - value = re.sub(r'\[(lang|language)\ \=\>\ *([a-zA-Z\-\/]*)\]', + value = re.sub(r'\[(lang|language)\ \=\>\ *([a-zA-Z\-\/\#\+]*)\]', '<div class="metatag" tag="lang">\\2</div>', value) value = re.sub(r'\[([a-z]+)\]', '<div class="metatag" tag="\\1">\\1</div>', value)