Fix ST_EDITSTATUS checking regexp
This commit is contained in:
parent
72293cb2b7
commit
8211dab4a0
@ -545,10 +545,10 @@ static bool SwitchLanguage(word crc, char* str)
|
|||||||
{
|
{
|
||||||
case CRC_ST_EDITSTATUS:
|
case CRC_ST_EDITSTATUS:
|
||||||
gregex reg;
|
gregex reg;
|
||||||
reg.compile("^.*%[0-9]*[dioux].*%[0-9]*[dioux].*%[0-9]*[dioux].*%[0-9]*s", gregex::icase);
|
reg.compile("^.*%[0-9-]*[dioux].*%[0-9-]*[dioux].*%[0-9-]*[dioux].*%[-0-9\\.]*s", gregex::icase);
|
||||||
if (!reg.match(str))
|
if (!reg.match(str))
|
||||||
{
|
{
|
||||||
STD_PRINTNL("ST_EDITSTATUS has wrong format. Read NOTEWORK.TXT for details or announce author if this error is false positive (first try to set true locale).");
|
STD_PRINTNL("ST_EDITSTATUS has wrong format. Read NOTEWORK.TXT for details or announce author if this error is false positive (first try to set true locale). Your format string is \"" << str << "\", should be 3 numbers and one string.");
|
||||||
SayBibi();
|
SayBibi();
|
||||||
waitkeyt(10000);
|
waitkeyt(10000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user