1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

common: discard wrapping quotes in strings

Fixes auto names that shouldn't have wrapping quotes like '"PassDroid"'
instead of just 'PassDroid'.
This commit is contained in:
Daniel Martí 2014-08-25 08:45:46 +02:00
parent 96f49f2a9e
commit 5e988eb84d

View File

@ -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'.*<!ENTITY.*' + string[1:-1] + '.*?"([^"]+?)".*>').search