2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

enable _ before arguments

This commit is contained in:
Nick80835
2020-04-05 15:26:05 -04:00
parent 1ebff95e41
commit eab8331e9c

View File

@@ -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']}(.*)"