diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-01 02:55:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-01 02:55:18 +0100 |
commit | 951f0051f1a649f9da42561b6f2d11e55b6f2b64 (patch) | |
tree | e958e82dfef522f9b7f18cfba7976d94dac8df1c | |
parent | [ZippyshareCom] Fix FILE_NAME_PATTERN (thx zapp-brannigan) (diff) | |
download | pyload-951f0051f1a649f9da42561b6f2d11e55b6f2b64.tar.xz |
[PluginManager] Better PATTERN
-rw-r--r-- | module/plugins/PluginManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 3d2b05e75..9a9ebad1d 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -19,7 +19,7 @@ class PluginManager: USERROOT = "userplugins." TYPES = ("crypter", "container", "hoster", "captcha", "accounts", "hooks", "internal") - PATTERN = re.compile(r'__pattern__\s*=\s*[a-z]*("|\')([^"\']+)') + PATTERN = re.compile(r'__pattern__\s*=\s*u?r("|\')([^"\']+)') VERSION = re.compile(r'__version__\s*=\s*("|\')([\d.]+)') CONFIG = re.compile(r'__config__\s*=\s*\[([^\]]+)', re.M) DESC = re.compile(r'__description__\s*=\s*("|"""|\')([^"\']+)') |