AcManager.Tools.Helpers.Loaders.GoogleDriveLoader.PrepareUrl C# (CSharp) Method

PrepareUrl() private static method

private static PrepareUrl ( string url ) : string
url string
return string
        private static string PrepareUrl(string url) {
            var googleDriveMatch = Regex.Match(url, @"://drive\.google\.com/file/d/(\w+)", RegexOptions.IgnoreCase);
            return googleDriveMatch.Success ? "https://drive.google.com/uc?export=download&id=" + googleDriveMatch.Groups[1].Value : url;
        }