Browse Source

regular expression matching is case insensitive

Scott Brogden 6 years ago
parent
commit
e2ad3ac63d
1 changed files with 1 additions and 1 deletions
  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
 	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);
 			sqlite3_result_int(context, 1);
 		}
 		}