r106886 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106885‎ | r106886 | r106887 >
Date:22:53, 20 December 2011
Author:aaron
Status:ok
Tags:
Comment:
Added another sample URL
Modified paths:
  • /trunk/extensions/SwiftMedia/wmf/rewrite.py (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftMedia/wmf/rewrite.py
@@ -167,6 +167,7 @@
168168 # example:
169169 # http://upload.wikimedia.org/wikipedia/commons/a/aa/000_Finlanda_harta.PNG
170170 # http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/000_Finlanda_harta.PNG/75px-000_Finlanda_harta.PNG
 171+ # http://upload.wikimedia.org/wikipedia/commons/thumb/archive/b/b6/20101108115418!Gilbert_Stuart_Williamstown_Portrait_of_George_Washington.jpg/100px-Gilbert_Stuart_Williamstown_Portrait_of_George_Washington.jpg
171172 match = re.match(r'/(?P<proj>.*?)/(?P<lang>.*?)/(?P<thumb>thumb/)?(?P<shard>./../)?(?P<path>.*)', req.path)
172173 if match:
173174 # Our target URL is as follows (example):

Status & tagging log