mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							11741543da
						
					
				
				
					commit
					6e4c3e41dc
				
			@@ -3,10 +3,10 @@ from typing import Optional, Set, Tuple
 | 
			
		||||
 | 
			
		||||
# Match multi-word string between @** ** or match any one-word
 | 
			
		||||
# sequences after @
 | 
			
		||||
find_mentions = r'(?<![^\s\'\"\(,:<])@(?P<silent>_?)(?P<match>\*\*[^\*]+\*\*|all|everyone|stream)'
 | 
			
		||||
user_group_mentions = r'(?<![^\s\'\"\(,:<])@(\*[^\*]+\*)'
 | 
			
		||||
find_mentions = r"(?<![^\s\'\"\(,:<])@(?P<silent>_?)(?P<match>\*\*[^\*]+\*\*|all|everyone|stream)"
 | 
			
		||||
user_group_mentions = r"(?<![^\s\'\"\(,:<])@(\*[^\*]+\*)"
 | 
			
		||||
 | 
			
		||||
wildcards = ['all', 'everyone', 'stream']
 | 
			
		||||
wildcards = ["all", "everyone", "stream"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def user_mention_matches_wildcard(mention: str) -> bool:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user