mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 06:26:04 +00:00
enable _ before arguments
This commit is contained in:
@@ -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']}(.*)"
|
||||
|
Reference in New Issue
Block a user