diff --git a/components/tor/brave_tor_client_updater.cc b/components/tor/brave_tor_client_updater.cc index 9275a5eebf6..20c501b4ca5 100644 --- a/components/tor/brave_tor_client_updater.cc +++ b/components/tor/brave_tor_client_updater.cc @@ -40,7 +40,7 @@ std::pair InitTorPath( base::FileEnumerator::FileInfo file_info = traversal.GetInfo(); if (RE2::FullMatch( file_info.GetName().MaybeAsASCII(), - "tor-\\d+\\.\\d+\\.\\d+\\.\\d+-\\w+|\\w+-\\w+-brave-\\d+")) { + "tor-\\d+\\.\\d+\\.\\d+\\.\\d+-\\w+(-\\w+)?-brave-\\d+")) { executable_path = current; } else if (file_info.GetName().MaybeAsASCII() == "tor-torrc") { torrc_path = current;