Fixes regex issue to catch spaces with Google translate.

This commit is contained in:
tom79 2017-09-10 10:01:12 +02:00
parent 3e569248a3
commit 7e97064100
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
But, pre-planning might save some time later...
*/
aJsonString = aJsonString.replaceAll("__ (u|t)(\\d+)__", "__$1$2__").replaceAll("__(u|t)(\\d+) __", "__$1$2__");
aJsonString = aJsonString.replaceAll("__\\s?(u|t)\\s?(\\d+)\\s?__", "__$1$2__");
aJsonString = aJsonString.replaceAll("%(?![0-9a-fA-F]{2})", "%25");
aJsonString = aJsonString.replaceAll("\\+", "%2B");
aJsonString = URLDecoder.decode(aJsonString, "UTF-8");