From 00ed91f12e5998eb803c932888efa71ef33871b1 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Mon, 15 Apr 2019 12:23:55 +0200 Subject: Fix space in plurals regexp --- util/po2php.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/po2php.php') diff --git a/util/po2php.php b/util/po2php.php index 9ffcb64c4..73d9b454e 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -52,7 +52,7 @@ function po2php_run($argc,$argv) { if ($l[0]=="#") $l=""; if (substr($l,0,15)=='"Plural-Forms: '){ $match=Array(); - preg_match("|nplurals=([0-9]*); *plural=(.*)[;\\\\]|", $l, $match); + preg_match("|nplurals=([0-9]*);\s*plural=(.*)[;\\\\]|", $l, $match); $cond = str_replace('n','$n',$match[2]); $out .= 'if(! function_exists("' . 'string_plural_select_' . $lang .'")) {' . "\n"; $out .= 'function string_plural_select_' . $lang . '($n){'."\n"; -- cgit v1.2.3