From 5e988eb84dc559550d2f9b4b17ef8bec5935386e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 25 Aug 2014 08:45:46 +0200 Subject: [PATCH] common: discard wrapping quotes in strings Fixes auto names that shouldn't have wrapping quotes like '"PassDroid"' instead of just 'PassDroid'. --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index e5a18fc5..6e9cf1ec 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -807,7 +807,7 @@ def retrieve_string(app_dir, string, xmlfiles=None): string_search = None if string.startswith('@string/'): - string_search = re.compile(r'.*name="' + string[8:] + '".*?>([^<]+?)<.*').search + string_search = re.compile(r'.*name="' + string[8:] + '".*?>"?([^<]+?)"?<.*').search elif string.startswith('&') and string.endswith(';'): string_search = re.compile(r'.*').search -- 2.30.2