Clean String Messages in Osai
This commit is contained in:
@@ -185,7 +185,7 @@ namespace CMS_CORE_Library.Osai
|
||||
messages = File.ReadAllLines(filePath, Encoding.Default)
|
||||
.Select(line => line.Split(','))
|
||||
.Where(line => line.Count() == 2)
|
||||
.ToDictionary(line => Convert.ToInt32(line[0]), line => line[1]);
|
||||
.ToDictionary(line => Convert.ToInt32(line[0]), line => line[1].Trim());
|
||||
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user