Fix tor component regex
This commit is contained in:
@@ -40,7 +40,7 @@ std::pair<base::FilePath, base::FilePath> 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;
|
||||
|
||||
Reference in New Issue
Block a user