Bugfix in the android app for Chinese which was causing the first character in the translation to disappear

This commit is contained in:
krasimir
2015-08-12 18:44:45 +00:00
parent 6fff2def39
commit 8e39c1f622

View File

@@ -240,7 +240,7 @@ public class Translator {
}
private static String implode(String s) {
return s.replaceAll("\\s","");
return s.replaceAll("(?<!^[%*+])\\s","");
}
private String translateWord(String input) {