From 64239b6949ad185c62f4a86acaced9f811d54e9e Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 6 Feb 2023 15:38:20 -0800 Subject: Improve PII filter Based on screenshots seen in Discord. This filter is just here to maximize user privacy while debugging. --- GUI/GUI/GUI/Logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GUI') diff --git a/GUI/GUI/GUI/Logging.cpp b/GUI/GUI/GUI/Logging.cpp index b9f3be4..78594b4 100644 --- a/GUI/GUI/GUI/Logging.cpp +++ b/GUI/GUI/GUI/Logging.cpp @@ -6,7 +6,7 @@ std::string Logging::HidePII(const std::string&& str, const std::string& replacement) { try { - std::regex c_users("(C:\\\\+Users\\\\+)[a-zA-Z0-9_ ]+"); + std::regex c_users("([A-Za-z]:\\\\+[Uu]sers\\\\+)[a-zA-Z0-9_ ]+"); std::string real_replacement = "$1" + replacement; return std::regex_replace(str, c_users, real_replacement); } -- cgit v1.2.3