[Libreoffice-commits] website.git: Branch 'update' - check.php

Christian Lohmaier lohmaier+LibreOffice at googlemail.com
Thu Jun 9 00:00:37 UTC 2016


 check.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fec2f09fd2711ba04da78418c534e0a37092e92a
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Thu Jun 9 02:00:30 2016 +0200

    Bundled languages are optional

diff --git a/check.php b/check.php
index 4dab8fa..f7f2eab 100644
--- a/check.php
+++ b/check.php
@@ -41,7 +41,7 @@ function get_update_info($agent=null) {
     if ($agent == null)
         return array();
 
-    $pattern = '#^(?P<product>[^/ ]+)[/ ]+(?P<version>[0-9]+(?:\.[0-9]+)?)[^\(]+\((?P<buildid>[^;\( ]*) *; (?P<os>[^; ]*); (?P<arch>[^; ]*); BundledLanguages=(?<langs>[^;\)]*)\)#i';
+    $pattern = '#^(?P<product>[^/ ]+)[/ ]+(?P<version>[0-9]+(?:\.[0-9]+)?)[^\(]+\((?P<buildid>[^;\( ]*) *; (?P<os>[^; ]*); (?P<arch>[^; ]*); \(BundledLanguages=(?<langs>[^;\)]*)\)?\)#i';
 
     if (!preg_match($pattern, $agent, $match))
         return array();


More information about the Libreoffice-commits mailing list