From 144e11f66dee17c501bc39f77d78e749fbc67898 Mon Sep 17 00:00:00 2001 From: TheSillyDoggo Date: Thu, 19 Dec 2024 15:30:46 +1100 Subject: [PATCH] igscuighatuiadyhfuaihdsxgrtfuhagdfuiyragrtasduiyfgesraduriyewgafdiuyasdgriuawefdas --- src/UI/TransAlertLayer.cpp | 2 +- src/UI/TransLabelBMFont.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/TransAlertLayer.cpp b/src/UI/TransAlertLayer.cpp index 8bf4174..e2945ae 100644 --- a/src/UI/TransAlertLayer.cpp +++ b/src/UI/TransAlertLayer.cpp @@ -11,7 +11,7 @@ bool TransAlertLayer::init(char const* title, const gd::string& desc, char const bool useTtf = false; - useTtf = !std::regex_match(desc2, std::regex("^[a-zA-Z0-9\\s\\W]*$")); + useTtf = !std::regex_match(desc2, std::regex("^[a-zA-Z0-9\\s%:-]*$")); if (useTtf) { diff --git a/src/UI/TransLabelBMFont.cpp b/src/UI/TransLabelBMFont.cpp index 9906732..6380e96 100644 --- a/src/UI/TransLabelBMFont.cpp +++ b/src/UI/TransLabelBMFont.cpp @@ -123,7 +123,7 @@ void TransLabelBMFont::updateTTFVisible() } else { - useTtf = !std::regex_match(text, std::regex("^[a-zA-Z0-9\\s\\W]*$")); + useTtf = !std::regex_match(text, std::regex("^[a-zA-Z0-9\\s%:-]*$")); } label->setString(text.c_str());