settings: disable regexes by default

This commit is contained in:
Andrzej Rybczak
2013-04-06 17:27:29 +02:00
parent 7f8a6e7931
commit 153e843774
2 changed files with 5 additions and 5 deletions

View File

@@ -416,7 +416,7 @@
#
#display_remaining_time = "no"
#
#regular_expressions = "basic" (basic/extended)
#regular_expressions = "none" (none/basic/extended)
#
##
## Note: If below is enabled, ncmpcpp will ignore leading

View File

@@ -228,7 +228,7 @@ void Configuration::SetDefaults()
playlist_disable_highlight_delay = 5;
message_delay_time = 4;
lyrics_db = 0;
regex_type = boost::regex::icase;
regex_type = boost::regex::literal | boost::regex::icase;
lines_scrolled = 2;
search_engine_default_search_mode = 0;
visualizer_sync_interval = 30;
@@ -783,11 +783,11 @@ void Configuration::Read()
else if (name == "regular_expressions")
{
if (v == "none")
regex_type |= boost::regex::literal;
regex_type = boost::regex::literal | boost::regex::icase;
else if (v == "basic")
regex_type |= boost::regex::basic;
regex_type = boost::regex::basic | boost::regex::icase;
else if (v == "extended")
regex_type |= boost::regex::extended;
regex_type = boost::regex::extended | boost::regex::icase;
}
else if (name == "lines_scrolled")
{