15 static const std::regex browser_regex(R
"(Chrome/(\d+)\.\d+\.\d+\.\d+)");
16 std::string version = "0";
20 if (std::regex_search(user_agent, match, browser_regex) && match.size() > 1) {
21 version = match[1].str();
25 std::string sec_ch_ua =
"\"Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"" + version +
"\", \"Chromium\";v=\"" + version +
"\"";