website: fix matching against date/time in version number string when formatting for neat display
This commit is contained in:
parent
37ae87e376
commit
57699d42b4
@ -6,7 +6,7 @@ include_once ( "userscript.php" );
|
|||||||
function iitcDesktopDownload ( $build )
|
function iitcDesktopDownload ( $build )
|
||||||
{
|
{
|
||||||
$iitc_details = loadUserScriptHeader ( "$build/total-conversion-build.user.js" );
|
$iitc_details = loadUserScriptHeader ( "$build/total-conversion-build.user.js" );
|
||||||
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{6})/', '\1<small class="muted">.\2</small>', $iitc_details['@version'] );
|
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<small class="muted">.\2</small>', $iitc_details['@version'] );
|
||||||
|
|
||||||
print "<p>IITC version $iitc_version</p>\n";
|
print "<p>IITC version $iitc_version</p>\n";
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ function iitcDesktopPluginDownloadTable ( $build )
|
|||||||
$name = preg_replace ( '/^IITC plugin: /i', '', $details['@name'] );
|
$name = preg_replace ( '/^IITC plugin: /i', '', $details['@name'] );
|
||||||
|
|
||||||
# format extended version info in less prominant font
|
# format extended version info in less prominant font
|
||||||
$version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{6})/', '\1<br><small class="muted">.\2</small>', $details['@version'] );
|
$version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<br><small class="muted">.\2</small>', $details['@version'] );
|
||||||
|
|
||||||
# remove unneeded prefix from description
|
# remove unneeded prefix from description
|
||||||
$description = preg_replace ( '/^\[[^]]*\] */', '', $details['@description'] );
|
$description = preg_replace ( '/^\[[^]]*\] */', '', $details['@description'] );
|
||||||
|
@ -42,7 +42,7 @@ function iitcMobileDownload ( $apkfile )
|
|||||||
$version = getMobileVersion ( $apkfile );
|
$version = getMobileVersion ( $apkfile );
|
||||||
|
|
||||||
$apk_version = $version['apk_version'];
|
$apk_version = $version['apk_version'];
|
||||||
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{6})/', '\1<small class="muted">.\2</small>', $version['iitc_version'] );
|
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<small class="muted">.\2</small>', $version['iitc_version'] );
|
||||||
|
|
||||||
# we need an absolute link for the QR Code
|
# we need an absolute link for the QR Code
|
||||||
# get the URL of this page itself
|
# get the URL of this page itself
|
||||||
|
Loading…
x
Reference in New Issue
Block a user