From 951f0051f1a649f9da42561b6f2d11e55b6f2b64 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 1 Nov 2014 02:55:18 +0100 Subject: [PluginManager] Better PATTERN --- module/plugins/PluginManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*("|"""|\')([^"\']+)') -- cgit v1.2.3