Update regex.inc

This commit is contained in:
9iky6 2014-11-07 18:11:55 +05:00
parent 21ae30b985
commit 63aff82dc8

View File

@ -305,7 +305,7 @@ native Regex:regex_match_all(const string[], const pattern[], flags = 0, error[]
stock regex_match_simple(const str[], const pattern[], flags = 0, error[]= "", maxLen = 0, &errcode = 0)
{
new Regex:regex = regex_compile_ex(pattern, flags, error, maxLen, errcode);
if (regex < REGEX_NO_MATCH)
if (regex < REGEX_OK)
{
return -1;
}