mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-27 13:06:40 +00:00 
			
		
		
		
	🐛 Fix endswith match bug
This commit is contained in:
		| @@ -224,7 +224,7 @@ def endswith(msg: Union[str, Tuple[str, ...]], | ||||
|         if event.get_type() != "message": | ||||
|             return False | ||||
|         text = event.get_plaintext() | ||||
|         return bool(pattern.match(text)) | ||||
|         return bool(pattern.search(text)) | ||||
|  | ||||
|     return Rule(_endswith) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user