From 0146cb9737b023ebe4b297dc700ede667772e9be Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 13 Jul 2016 22:52:36 +0200 Subject: fix regex for language names with numbers like es_418 --- langs/report_tx_git.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'langs/report_tx_git.php') diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php index 12ebe7f24..2baf6bda0 100644 --- a/langs/report_tx_git.php +++ b/langs/report_tx_git.php @@ -515,9 +515,9 @@ if ('Webpages' == $resource_type) { // list all po files from links within $raw_html_dump if (false !== strpos($pot_name, '_en.ts')) { // treat TS files differently $first_part_pot_name = substr($pot_name, 0, -5); // cuts 'en.ts' from mageiaSync_en.ts - preg_match_all("/('>$first_part_pot_name)([a-z_A-Z@-]+)(\.ts<)/", $raw_html_dump, $language_codes); + preg_match_all("/('>$first_part_pot_name)([a-z_A-Z0-9@-]+)(\.ts<)/", $raw_html_dump, $language_codes); } else { - preg_match_all("/('>)([a-z_A-Z@-]+)(\.po<)/", $raw_html_dump, $language_codes); + preg_match_all("/('>)([a-z_A-Z0-9@-]+)(\.po<)/", $raw_html_dump, $language_codes); } $git_language_codes = $language_codes[2]; if (empty($wanted_language)) { -- cgit v1.2.1