Skip to content

Commit

Permalink
handling multiple language codes in 041, 041 #529
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Oct 24, 2024
1 parent 0cbb931 commit 9c42705
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ public List<String> parse(String content) {
return result;

if (content.length() > lengh)
for (int i = 0; i < content.length(); i = i + lengh)
result.add(content.substring(i, i + lengh));
for (int i = 0; i < content.length(); i = i + lengh) {
int end = i + lengh < lengh ? lengh : i + lengh;
result.add(content.substring(i, end));
}
else
result.add(content);

Expand Down

0 comments on commit 9c42705

Please sign in to comment.