更新时间:2023-02-26 20:08:14
我找到了一个解决方案,使用带有ascii代码的string.gsub而不是字符本身可以解决此问题.对于遇到相同问题的人:
I have found a solution, Using string.gsub with the ascii code instead of the character itself solves the problem. For those who encounter the same problem:
newstring = string.gsub(string, "[\10]", "")
这将删除换行符,并允许从此开始进行字符串匹配.
This removes the line feed and allows string matching henceforth.