From eab8331e9c56efa1ff02606555c137da281c3471 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Sun, 5 Apr 2020 15:26:05 -0400 Subject: [PATCH] enable _ before arguments --- ubot/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/loader.py b/ubot/loader.py index 0f5bf8f..7643242 100644 --- a/ubot/loader.py +++ b/ubot/loader.py @@ -49,7 +49,7 @@ class Loader(): prefix = '' if not args.get('isfilter', False) and args.get('pattern', None) is not None: - args['pattern'] = f"(?is)^{prefix}{args['pattern']}(?: |$)(.*)" + args['pattern'] = f"(?is)^{prefix}{args['pattern']}(?: |$|_)(.*)" else: del args['isfilter'] args['pattern'] = f"(?is)(.*){args['pattern']}(.*)"