website: fix matching against date/time in version number string when formatting for neat display

This commit is contained in:
Jon Atkins
2013-09-03 18:29:42 +01:00
parent 37ae87e376
commit 57699d42b4
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ function iitcMobileDownload ( $apkfile )
$version = getMobileVersion ( $apkfile );
$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
# get the URL of this page itself