From ac803529318dfbfb9dbc1c45639cbfdb5fabd4f0 Mon Sep 17 00:00:00 2001 From: Linh Kikuchi Date: Fri, 17 Feb 2023 17:06:35 +0900 Subject: [PATCH] Fix tor component regex --- components/tor/brave_tor_client_updater.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;