mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Case insensitive re: replace
This commit is contained in:
parent
e2c46f978e
commit
a2b484d4a5
1 changed files with 3 additions and 2 deletions
|
@ -133,6 +133,7 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.Properties;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.mail.Address;
|
||||
import javax.mail.MessageRemovedException;
|
||||
|
@ -2074,13 +2075,13 @@ public class FragmentCompose extends FragmentBase {
|
|||
"participation".equals(action)) {
|
||||
if (prefix_once) {
|
||||
String re = context.getString(R.string.title_subject_reply, "");
|
||||
subject = subject.replace(re.trim(), "").trim();
|
||||
subject = subject.replaceAll("(?i)" + Pattern.quote(re.trim()), "").trim();
|
||||
}
|
||||
draft.subject = context.getString(R.string.title_subject_reply, subject);
|
||||
} else if ("forward".equals(action)) {
|
||||
if (prefix_once) {
|
||||
String fwd = context.getString(R.string.title_subject_forward, "");
|
||||
subject = subject.replace(fwd.trim(), "").trim();
|
||||
subject = subject.replaceAll("(?i)" + Pattern.quote(fwd.trim()), "").trim();
|
||||
}
|
||||
draft.subject = context.getString(R.string.title_subject_forward, subject);
|
||||
} else if ("editasnew".equals(action)) {
|
||||
|
|
Loading…
Reference in a new issue