diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-07-22 13:30:21 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-07-23 10:16:12 +0200 |
commit | 26357bcb3838698e041d7079105144dfb72856e1 (patch) | |
tree | c640006bdf09be9aec08635274a3f6d6aed60198 /sfx2/inc | |
parent | c61f3f47280334c9589fe37742cad93501540857 (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>
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/SfxRedactionHelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/inc/SfxRedactionHelper.hxx b/sfx2/inc/SfxRedactionHelper.hxx index 085283d7fa5d..86d563f7631d 100644 --- a/sfx2/inc/SfxRedactionHelper.hxx +++ b/sfx2/inc/SfxRedactionHelper.hxx @@ -128,7 +128,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 |