mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Don't allow '_' in first place of version code
Fixes a regression of2cb0ff45
. Example: versionCode project.versionCode_plus931b0a3087/app/build.gradle (L38)
This commit is contained in:
parent
a946ae2b44
commit
a9a336a12b
3 changed files with 23 additions and 1 deletions
|
@ -1579,7 +1579,7 @@ def remove_debuggable_flags(root_dir):
|
|||
os.path.join(root, 'AndroidManifest.xml'))
|
||||
|
||||
|
||||
vcsearch_g = re.compile(r'''\b[Vv]ersionCode\s*=?\s*["'(]*([0-9_]+)["')]*''').search
|
||||
vcsearch_g = re.compile(r'''\b[Vv]ersionCode\s*=?\s*["'(]*([0-9][0-9_]*)["')]*''').search
|
||||
vnsearch_g = re.compile(r'''\b[Vv]ersionName\s*=?\s*\(?(["'])((?:(?=(\\?))\3.)*?)\1''').search
|
||||
vnssearch_g = re.compile(r'''\b[Vv]ersionNameSuffix\s*=?\s*(["'])((?:(?=(\\?))\3.)*?)\1''').search
|
||||
psearch_g = re.compile(r'''\b(packageName|applicationId)\s*=*\s*["']([^"']+)["']''').search
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue