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

Commit ae9e025

Browse files
committed
Merge pull request #160 from Kimmax/upstreamMaster
Fixes #156, #154 and possibly #153.
2 parents 888ac08 + 2fb0b8d commit ae9e025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

YoutubeExtractor/YoutubeExtractor/Decipherer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static string DecipherWithVersion(string cipher, string cipherVersion)
2222
funcName = "\\" + funcName; //Due To Dollar Sign Introduction, Need To Escape
2323
}
2424

25-
string funcPattern = @"var " + @funcName + @"=function\(\w+\)\{.*?\};"; //Escape funcName string
26-
var funcBody = Regex.Match(js, funcPattern).Value; //Entire sig function
25+
string funcPattern = @funcName + @"=function\(\w+\)\{.*?\},"; //Escape funcName string
26+
var funcBody = Regex.Match(js, funcPattern, RegexOptions.Singleline).Value; //Entire sig function
2727
var lines = funcBody.Split(';'); //Each line in sig function
2828

2929
string idReverse = "", idSlice = "", idCharSwap = ""; //Hold name for each cipher method

0 commit comments

Comments
 (0)