mirror of
https://github.com/moparisthebest/android-app
synced 2024-12-24 07:28:51 -05:00
fixing issue #45: removing leading, trailing and multiple whitespaces.
This commit is contained in:
parent
231f4c0efb
commit
011ba91d87
@ -340,6 +340,11 @@ public class Poche extends Activity {
|
||||
s = s.replace("ï", "ï");
|
||||
s = s.replace("ç", "ç");
|
||||
s = s.replace("&", "&");
|
||||
|
||||
// Replace multiple whitespaces with single space
|
||||
s = s.replaceAll("\\s+", " ");
|
||||
s = s.trim();
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user