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

Christian Lohmaier lohmaier+LibreOffice at googlemail.com
Thu Jun 9 12:20:49 UTC 2016


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

New commits:
commit d9597fa63f4649d885985256fa7b73f7ecd7ea31
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Thu Jun 9 14:18:29 2016 +0200

    really make BundledLanguages optional
    
    AKA parentheses are hard... (php is not sed)

diff --git a/check.php b/check.php
index f7f2eab..770f8fc 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