Show More
@@ -960,8 +960,8 b' tags_paterns = OrderedDict((' | |||||
960 | ('see', (re.compile(r'\[see\ \=\>\ *([a-zA-Z0-9\/\=\?\&\ \:\/\.\-]*)\]'), |
|
960 | ('see', (re.compile(r'\[see\ \=\>\ *([a-zA-Z0-9\/\=\?\&\ \:\/\.\-]*)\]'), | |
961 | '<div class="metatag" tag="see">see: \\1 </div>')), |
|
961 | '<div class="metatag" tag="see">see: \\1 </div>')), | |
962 |
|
962 | |||
963 | ('url', (re.compile(r'\[url\ \=\>\ \[([a-zA-Z0-9\ \.\-\_]+)\]\((.*?)\)\]'), |
|
963 | ('url', (re.compile(r'\[url\ \=\>\ \[([a-zA-Z0-9\ \.\-\_]+)\]\((http://|https://|/)(.*?)\)\]'), | |
964 | '<div class="metatag" tag="url"> <a href="\\2">\\1</a> </div>')), |
|
964 | '<div class="metatag" tag="url"> <a href="\\2\\3">\\1</a> </div>')), | |
965 |
|
965 | |||
966 | ('license', (re.compile(r'\[license\ \=\>\ *([a-zA-Z0-9\/\=\?\&\ \:\/\.\-]*)\]'), |
|
966 | ('license', (re.compile(r'\[license\ \=\>\ *([a-zA-Z0-9\/\=\?\&\ \:\/\.\-]*)\]'), | |
967 | '<div class="metatag" tag="license"><a href="http:\/\/www.opensource.org/licenses/\\1">\\1</a></div>')), |
|
967 | '<div class="metatag" tag="license"><a href="http:\/\/www.opensource.org/licenses/\\1">\\1</a></div>')), |
@@ -238,6 +238,19 b' def test_age_in_future(age_args, expecte' | |||||
238 | ]), |
|
238 | ]), | |
239 | # entry |
|
239 | # entry | |
240 | (( |
|
240 | (( | |
|
241 | "[url => [linkNameJS](javascript:alert(document.domain))]\n" | |||
|
242 | "[url => [linkNameHTTP](http://rhodecode.com)]\n" | |||
|
243 | "[url => [linkNameHTTPS](https://rhodecode.com)]\n" | |||
|
244 | "[url => [linkNamePath](/repo_group)]\n" | |||
|
245 | ), | |||
|
246 | [ | |||
|
247 | ('generic', '[linkNameJS]'), | |||
|
248 | ('url', '[url => [linkNameHTTP](http://rhodecode.com)]'), | |||
|
249 | ('url', '[url => [linkNameHTTPS](https://rhodecode.com)]'), | |||
|
250 | ('url', '[url => [linkNamePath](/repo_group)]'), | |||
|
251 | ]), | |||
|
252 | # entry | |||
|
253 | (( | |||
241 | "hello pta[tag] gog [[]] [[] sda ero[or]d [me =>>< sa]" |
|
254 | "hello pta[tag] gog [[]] [[] sda ero[or]d [me =>>< sa]" | |
242 | "[requires] [stale] [see<>=>] [see => http://url.com]" |
|
255 | "[requires] [stale] [see<>=>] [see => http://url.com]" | |
243 | "[requires => url] [lang => python] [just a tag] " |
|
256 | "[requires => url] [lang => python] [just a tag] " |
General Comments 0
You need to be logged in to leave comments.
Login now