[utils] Relaxing regex in decode_packed_codes for vidzi

pull/8/head
Yen Chi Hsuan 2016-02-26 15:13:03 +08:00
rodzic e4fc8d2ebe
commit 680079be39
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2639,7 +2639,7 @@ def base_n(num, n, table=None):
def decode_packed_codes(code):
mobj = re.search(
r"'([^']+)',(\d+),(\d+),'([^']+)'\.split\('\|'\),[^,]+,{}",
r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)",
code)
obfucasted_code, base, count, symbols = mobj.groups()
base = int(base)