Skip to content

Commit 38b61ca

Browse files
committed
hjhuhujikugykyuhyukiiiiihhhgkuylpugyk,i
1 parent 9f0af9a commit 38b61ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/UI/TransAlertLayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bool TransAlertLayer::init(char const* title, const gd::string& desc, char const
1111

1212
bool useTtf = false;
1313

14-
useTtf = !std::regex_match(desc2, std::regex("^[a-zA-Z0-9\\s]*$"));
14+
useTtf = !std::regex_match(desc2, std::regex("^[a-zA-Z0-9\\s\\W]*$"));
1515

1616
if (useTtf)
1717
{

src/UI/TransLabelBMFont.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void TransLabelBMFont::updateTTFVisible()
123123
}
124124
else
125125
{
126-
useTtf = !std::regex_match(text, std::regex("^[a-zA-Z0-9\\s]*$"));
126+
useTtf = !std::regex_match(text, std::regex("^[a-zA-Z0-9\\s\\W]*$"));
127127
}
128128

129129
label->setString(text.c_str());

0 commit comments

Comments
 (0)