mirror of
https://github.com/moparisthebest/android-app
synced 2024-11-15 05:15:04 -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