summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-07-22 13:30:21 +0200
committerAndras Timar <andras.timar@collabora.com>2020-07-28 16:11:04 +0200
commit5eeb1a9daf3c69da8b3d3f41d095195af871dfb6 (patch)
tree1ac2b85e9f6ffaf76e617f9c11f637179c045e57
parentc2f13c3f509dc5e4a8ab05c6963f90c7411eb086 (diff)
tdf#135032: autoredaction, take into account emails in lowercase
Change-Id: Ie922a9e7203e46b19a0c7418983b1d0d7e787f02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99216 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 26357bcb3838698e041d7079105144dfb72856e1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99209 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> (cherry picked from commit 6360bea26ddc8e4d42c2f0c50b4f3974a07a8ce4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99490 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sfx2/inc/SfxRedactionHelper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/inc/SfxRedactionHelper.hxx b/sfx2/inc/SfxRedactionHelper.hxx
index d30284791439..efeb9222816b 100644
--- a/sfx2/inc/SfxRedactionHelper.hxx
+++ b/sfx2/inc/SfxRedactionHelper.hxx
@@ -129,7 +129,7 @@ public:
private:
static constexpr OUStringLiteral m_aPredefinedTargets[6] = {
"\\b(?:\\d[ -]*?){13,16}\\b", //Credit card numbers
- "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}\\b", //Email addresses
+ "\\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\\b", //Email addresses
"\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
"\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
"\\b", //IP addresses