Procházet zdrojové kódy

regular expression matching is case insensitive

Scott Brogden před 7 roky
rodič
revize
e2ad3ac63d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      sqlite/CppSQLite3.cpp

+ 1 - 1
sqlite/CppSQLite3.cpp

@@ -765,7 +765,7 @@ void sqlite_regexp(sqlite3_context* context, int argc, sqlite3_value** values)
 
 	try
 	{
-		if (std::regex_search(text, std::regex(reg)))
+		if (std::regex_search(text, std::regex(reg, std::regex::flag_type::icase)))
 		{
 			sqlite3_result_int(context, 1);
 		}