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

Commit 7b37d6c

Browse files
committed
Merge pull request #98 from Cyano/master
Signs In Function Name (Signature Fix)
2 parents a46d929 + b1b5110 commit 7b37d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YoutubeExtractor/YoutubeExtractor/Decipherer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static string DecipherWithVersion(string cipher, string cipherVersion)
1313
string js = HttpHelper.DownloadString(jsUrl);
1414

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

0 commit comments

Comments
 (0)