[mb-commits] r10994 - mb_server/branches/RELEASE_20081123-BRANCH/htdocs/scripts
<root <at> musicbrainz.org>
2009-01-08 17:41:36 GMT
Author: luks
Date: 2009-01-08 17:41:36 +0000 (Thu, 08 Jan 2009)
New Revision: 10994
Modified:
mb_server/branches/RELEASE_20081123-BRANCH/htdocs/scripts/ar-frontend.js
Log:
Modify URL AR JavaScript validation for new format Discogs release URLs
Patch by Nikki, closes #4336
Modified: mb_server/branches/RELEASE_20081123-BRANCH/htdocs/scripts/ar-frontend.js
===================================================================
--- mb_server/branches/RELEASE_20081123-BRANCH/htdocs/scripts/ar-frontend.js 2009-01-08
12:25:55 UTC (rev 10993)
+++ mb_server/branches/RELEASE_20081123-BRANCH/htdocs/scripts/ar-frontend.js 2009-01-08
17:41:36 UTC (rev 10994)
<at> <at> -40,7 +40,7 <at> <at>
this.formsubmitted = null;
this.urlRegExps = {
amazon: new RegExp("^(http://)?([^/]+\.)?amazon\.(com|ca|co\.uk|fr|at|de|co\.jp|jp)","i"),
- discogs: new RegExp("^(http://)?([^/]+\.)?discogs\.com","i"),
+ discogs: new RegExp("^(https?://)?([^/]+\.)?discogs\.com","i"),
wikipedia: new RegExp("^(http://)?([^/]+\.)?wikipedia\.","i"),
musicmoz: new RegExp("^(http://)?([^/]+\.)?musicmoz\.","i"),
imdb: new RegExp("^(http://)?([^/]+\.)?imdb\.com","i"),
<at> <at> -264,7 +264,7 <at> <at>
field.value = "http://www.amazon." + tld + "/gp/product/" + asin;
}
} else if (v.match(this.urlRegExps.discogs)) {
(Continue reading)