This commit is contained in:
aozhiwei 2020-10-09 18:34:37 +08:00
parent 7a7c3db2b9
commit 787a4e439f

View File

@ -54,7 +54,7 @@ private:
void LoadDirtyWordTable() void LoadDirtyWordTable()
{ {
a8::CsvReader reader; a8::CsvReader reader;
reader.Load(res_path + "dirtyWorld.csv"); reader.Load(res_path + "dirtyWord@dirtyWord.csv");
while (reader.NextLine()) { while (reader.NextLine()) {
std::string strword = reader.GetValue("word").GetString(); std::string strword = reader.GetValue("word").GetString();
if (strword == " " || strword.empty()) { //忽略空格 if (strword == " " || strword.empty()) { //忽略空格