mw.loader: Fix off-by-one error in splitModuleKey()
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 25 Oct 2016 02:09:07 +0000 (03:09 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 25 Oct 2016 02:12:59 +0000 (03:12 +0100)
commit188549ad122c658681556999388cd1394bc6eb20
treed65d09dc8dee2eef234f7dc6bfd6fec5d666ae8b
parentd9a8aedcb5a22108e521b3e4108c0b3dda012e52
mw.loader: Fix off-by-one error in splitModuleKey()

Follows-up 45bec76. This caused most localStorage cache entries from
mw.loader.store to be ignored because it'd store tje source code with
a version string that wrongly started with an "@".

As such, on the next page view, when comparing against the version
string from the startup manifest, it would mismatch and eventually
be pruned by mw.loader.store.

Change-Id: If14c80989c0bb28b7b209abe89f83d585c563987
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.loader.test.js