From bd0db8303ea53821b3dcaa0f8390c4e10c6ed5df Mon Sep 17 00:00:00 2001 From: Sean Schaefer Date: Tue, 7 Jun 2022 09:58:46 -0700 Subject: [PATCH] Update cipher.py See https://github.com/pytube/pytube/issues/1199#issuecomment-1016783092 --- pytube/cipher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytube/cipher.py b/pytube/cipher.py index d385d83a4..5b37badd1 100644 --- a/pytube/cipher.py +++ b/pytube/cipher.py @@ -27,7 +27,7 @@ class Cipher: def __init__(self, js: str): self.transform_plan: List[str] = get_transform_plan(js) - var_regex = re.compile(r"^\w+\W") + var_regex = re.compile(r"^\$*\w+\W") var_match = var_regex.search(self.transform_plan[0]) if not var_match: raise RegexMatchError(