1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Let (semi) colon end sentences

This commit is contained in:
M66B 2024-12-21 13:07:55 +01:00
parent 35ec9857e5
commit c6ad264b66

View file

@ -2793,13 +2793,13 @@ public class Helper {
} }
static boolean isEndChar(char c) { static boolean isEndChar(char c) {
return (isSentenceChar(c) || return (isSentenceChar(c) || c == ',');
c == ',' || c == ':' || c == ';');
} }
static boolean isSentenceChar(char c) { static boolean isSentenceChar(char c) {
return (c == '.' /* Latin */ || return (c == '.' /* Latin */ ||
c == '。' /* Chinese */ || c == '。' /* Chinese */ ||
c == ':' || c == ';' ||
c == '?' || c == '!'); c == '?' || c == '!');
} }