Last modified: 2011-07-30 07:40:42 UTC
mw.util.getParamValue( "foo", "http://mw.org/#&foo=bad" ) returns 'bad' istead of null. Anchoring the regular expression at the beginning of the string should solve this.
Created attachment 8847 [details] Proposed patch The patch also includes a qunit test to confirm the correct behavior.
Thanks a lot for this. The patch looks good! I'll apply locally in a few minutes, test it to be sure and commit. We can probably get this backported to the 1.18 branch as well since it's a bugfix. Leaving status "NEW" for now, as it's not fixed yet.
Unit test + credits added in r93516. Fix in r93517. Marking fixes. Thanks!