1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00

godoc/static: tweak regular expression to match old darwin builds

Change-Id: I74020ece0cf8b4aceb60d75475500569d08416ee
Reviewed-on: https://go-review.googlesource.com/13211
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Andrew Gerrand 2015-08-05 16:22:07 +10:00
parent a29e96e3bf
commit 18635ec5c3
2 changed files with 4 additions and 4 deletions

View File

@ -254,7 +254,7 @@ function personalizeInstallInstructions() {
}
var filename = s.substr(prefix.length);
var filenameRE = /^go1\.\d+(\.\d+)?([a-z0-9]+)?\.([a-z0-9]+)(-[a-z0-9-.]+)?\.([a-z.]+)$/;
var filenameRE = /^go1\.\d+(\.\d+)?([a-z0-9]+)?\.([a-z0-9]+)-([a-z0-9]+)(-osx10\.[68])?\.([a-z.]+)$/;
$('.downloadFilename').text(filename);
$('.hideFromDownload').hide();
var m = filenameRE.exec(filename);
@ -264,7 +264,7 @@ function personalizeInstallInstructions() {
}
var os = m[3];
var ext = m[5];
var ext = m[6];
if (ext != 'tar.gz') {
$('#tarballInstructions').hide();
}

View File

@ -819,7 +819,7 @@ function personalizeInstallInstructions() {
}
var filename = s.substr(prefix.length);
var filenameRE = /^go1\.\d+(\.\d+)?([a-z0-9]+)?\.([a-z0-9]+)(-[a-z0-9-.]+)?\.([a-z.]+)$/;
var filenameRE = /^go1\.\d+(\.\d+)?([a-z0-9]+)?\.([a-z0-9]+)-([a-z0-9]+)(-osx10\.[68])?\.([a-z.]+)$/;
$('.downloadFilename').text(filename);
$('.hideFromDownload').hide();
var m = filenameRE.exec(filename);
@ -829,7 +829,7 @@ function personalizeInstallInstructions() {
}
var os = m[3];
var ext = m[5];
var ext = m[6];
if (ext != 'tar.gz') {
$('#tarballInstructions').hide();
}