remove surplus blank in string replacement
This commit is contained in:
parent
79cc5c4225
commit
949735611f
1 changed files with 4 additions and 4 deletions
|
@ -166,16 +166,16 @@ android {
|
|||
|
||||
def replaceNoTranslate(line) {
|
||||
if(line.contains("\"app_name\"") && System.getenv("APP_NAME")) {
|
||||
return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_NAME")+"<")
|
||||
return line.replaceAll(">[^<]*<", ">"+System.getenv("APP_NAME")+"<")
|
||||
}
|
||||
if(line.contains("\"app_edition\"") && System.getenv("APP_EDITION")) {
|
||||
return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_EDITION")+"<")
|
||||
return line.replaceAll(">[^<]*<", ">"+System.getenv("APP_EDITION")+"<")
|
||||
}
|
||||
if(line.contains("\"app_version\"") && System.getenv("APK_VERSION")) {
|
||||
return line.replaceAll(">[^<]*<", " >\1"+System.getenv("APK_VERSION")+"<")
|
||||
return line.replaceAll(">[^<]*<", ">\1"+System.getenv("APK_VERSION")+"<")
|
||||
}
|
||||
if(line.contains("\"versionFeatures\"") && System.getenv("APP_FEATURES")) {
|
||||
return line.replaceAll(">[^<]*<", " >"+System.getenv("APP_FEATURES")+"<")
|
||||
return line.replaceAll(">[^<]*<", ">"+System.getenv("APP_FEATURES")+"<")
|
||||
}
|
||||
return line;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue