message: config set compact-cron & compact-interval ''
diff: @@ -1121,6 +1121,7 @@ void ConfigCmd::ConfigSet(std::string& ret) {
  ret = "+OK\r\n";
  } else if (set_item == "compact-cron") {
  bool invalid = false;
  + if (value != "") {
  std::string::size_type len = value.length();
  std::string::size_type colon = value.find("-");
  std::string::size_type underline = value.find("/");
  @@ -1136,6 +1137,7 @@ void ConfigCmd::ConfigSet(std::string& ret) {
  invalid = true;
  }
  }
  + }
  if (invalid) {
  ret = "-ERR invalid compact-cron\r\n";
  return;
  @@ -1145,6 +1147,7 @@ void ConfigCmd::ConfigSet(std::string& ret) {
  }
  } else if (set_item == "compact-interval") {
  bool invalid = false;
  + if (value != "") {
  std::string::size_type len = value.length();
  std::string::size_type slash = value.find("/");
  if (slash == std::string::npos || slash + 1 >= len) {
  @@ -1156,6 +1159,7 @@ void ConfigCmd::ConfigSet(std::string& ret) {
  invalid = true;
  }
  }
  + }
  if (invalid) {
  ret = "-ERR invalid compact-interval\r\n";
  return;
  