This commit is contained in:
aozhiwei 2020-12-23 13:28:19 +08:00
parent 7bace2c10c
commit 7475566743

View File

@ -60,6 +60,7 @@ private:
if (strword == " " || strword.empty()) { //忽略空格
continue;
}
std::transform(strword.begin(), strword.end(), strword.begin(), ::tolower);
auto itr = dirty_words.find(strword.size());
if (dirty_words.find(strword.size()) != dirty_words.end()) {
itr->second[strword] = strword;