From a4e5d5b76687cdd12ff2de2c687a861d43263ce6 Mon Sep 17 00:00:00 2001 From: dkanada Date: Thu, 27 Aug 2020 09:38:02 +0900 Subject: [PATCH] tweak script for unused translations --- scripts/unused.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unused.py b/scripts/unused.py index 12af27320a..abbc399cf6 100644 --- a/scripts/unused.py +++ b/scripts/unused.py @@ -16,7 +16,7 @@ langlst.append('en-us.json') dep = [] def grep(key): - command = 'grep -r -E "(\(\\\"|\(\'|\{)%s(\\\"|\'|\})" --include=\*.{js,html} --exclude-dir=../src/strings ../src' % key + command = 'grep -r -E "(\\\"|\'|\{)%s(\\\"|\'|\})" --include=\*.{js,html} --exclude-dir=../src/strings ../src' % key p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output = p.stdout.readlines() if output: