summaryrefslogtreecommitdiffstats
path: root/GUI
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-02-06 15:38:20 -0800
committeryum <yum.food.vr@gmail.com>2023-02-06 15:38:20 -0800
commit64239b6949ad185c62f4a86acaced9f811d54e9e (patch)
tree3887fe5f6e71b8d860b2fbc5ced19ce78dda4fb1 /GUI
parentc3db83cdc93509fb242c9f5d62f2a2f3e21d376c (diff)
Improve PII filter
Based on screenshots seen in Discord. This filter is just here to maximize user privacy while debugging.
Diffstat (limited to 'GUI')
-rw-r--r--GUI/GUI/GUI/Logging.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}