From f86be1ad2e554386d0d46afa6bafe837b507b317 Mon Sep 17 00:00:00 2001 From: dabura667 Date: Thu, 23 Jul 2015 23:52:48 +0900 Subject: [PATCH] fixed regex --- i18n/crowdin_download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/crowdin_download.js b/i18n/crowdin_download.js index c451c1c22..018a878a8 100644 --- a/i18n/crowdin_download.js +++ b/i18n/crowdin_download.js @@ -64,7 +64,7 @@ https.get('https://crowdin.com/download/project/' + crowdin_identifier + '.zip', // if a line is not == English, it means there is translation. Keep this file. if (source_text != translate_text) { // erase email addresses of last translator for privacy - po_file = po_file.replace(/ <[a-zA-Z0-9@.]*>/, '') + po_file = po_file.replace(/ <.+@.+\..+>/, '') fs.writeFileSync(path.join(__dirname, 'po/' + files[i]), po_file); // split the file into 3 parts, before locale, locale, and after locale.