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:
parent
a29e96e3bf
commit
18635ec5c3
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user