remove surplus blank in string replacement

This commit is contained in:
sonora 2015-01-25 11:42:51 +01:00
parent 79cc5c4225
commit 949735611f

View file

@ -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;
}