mw.Title: Correct order of file URL regexes in newFromImg
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 31 May 2016 22:40:15 +0000 (00:40 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 31 May 2016 22:40:15 +0000 (00:40 +0200)
commit9df363dbbfd4ead14807483246b19348620a85c4
treead039eaaf9a1ee0090acce8847d99e1bb67f931f
parent2b61c4181d677c1da091744774a97a1ad7ccccf7
mw.Title: Correct order of file URL regexes in newFromImg

The "Thumbnails in non-hashed upload directories" regex can match
non-thumbnailed files in hashed directories if the file name contains
the word "thumbnail" or the first two bytes of the MD5 hash of the
file name. We should check "Full size images" first.

Bug: T134860
Change-Id: I74af47969bf9ba204c24e299f788f5349302e437
resources/src/mediawiki/mediawiki.Title.js