Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #98 from Cyano/master
Browse files Browse the repository at this point in the history
Signs In Function Name (Signature Fix)
  • Loading branch information
flagbug committed Jan 16, 2015
2 parents a46d929 + b1b5110 commit 7b37d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YoutubeExtractor/YoutubeExtractor/Decipherer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static string DecipherWithVersion(string cipher, string cipherVersion)
string js = HttpHelper.DownloadString(jsUrl);

//Find "C" in this: var A = B.sig||C (B.s)
string functNamePattern = @"\.sig\s*\|\|(\w+)\(";
string functNamePattern = @"\.sig\s*\|\|(\w+|$)\(";
var funcName = Regex.Match(js, functNamePattern).Groups[1].Value;
string funcBodyPattern = @"(?<brace>{([^{}]| ?(brace))*})"; //Match nested angle braces
string funcPattern = string.Format(@"{0}\(\w+\){1}", funcName, funcBodyPattern);
Expand Down

0 comments on commit 7b37d6c

Please sign in to comment.