Merge pull request #1236 from pytube/revert-1200-master
Browse files- pytube/cipher.py +1 -1
pytube/cipher.py
CHANGED
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
|
|
27 |
class Cipher:
|
28 |
def __init__(self, js: str):
|
29 |
self.transform_plan: List[str] = get_transform_plan(js)
|
30 |
-
var_regex = re.compile(r"
|
31 |
var_match = var_regex.search(self.transform_plan[0])
|
32 |
if not var_match:
|
33 |
raise RegexMatchError(
|
|
|
27 |
class Cipher:
|
28 |
def __init__(self, js: str):
|
29 |
self.transform_plan: List[str] = get_transform_plan(js)
|
30 |
+
var_regex = re.compile(r"^\w+\W")
|
31 |
var_match = var_regex.search(self.transform_plan[0])
|
32 |
if not var_match:
|
33 |
raise RegexMatchError(
|