Fix split toots

This commit is contained in:
stom79 2018-08-22 19:38:23 +02:00
parent e40f807aa0
commit 0d7b5b8ad3
1 changed files with 2 additions and 2 deletions

View File

@ -2270,7 +2270,7 @@ public class Helper {
* @return ArrayList<String> split toot * @return ArrayList<String> split toot
*/ */
public static ArrayList<String> splitToots(String content, int maxChars){ public static ArrayList<String> splitToots(String content, int maxChars){
String[] splitContent = content.split("\\."); String[] splitContent = content.split("(\\.\\s){1}");
ArrayList<String> splitToot = new ArrayList<>(); ArrayList<String> splitToot = new ArrayList<>();
StringBuilder tempContent = new StringBuilder(splitContent[0]); StringBuilder tempContent = new StringBuilder(splitContent[0]);
for(int i= 0 ; i < splitContent.length ; i++){ for(int i= 0 ; i < splitContent.length ; i++){