Fix split toots
This commit is contained in:
parent
e40f807aa0
commit
0d7b5b8ad3
|
@ -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++){
|
||||||
|
|
Loading…
Reference in New Issue