mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	linter: Allow using javascript instead of JavaScript for calling examples.
This allows us to call js code examples as follows:
`{generate_code_example(javascript)|/users:post|example()}`
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							5f3849b517
						
					
				
				
					commit
					61f6a6e9bb
				
			| @@ -542,7 +542,7 @@ css_rules = RuleList( | ||||
| ) | ||||
|  | ||||
| prose_style_rules: List["Rule"] = [ | ||||
|     {'pattern': r'[^\/\#\-"]([jJ]avascript)',  # exclude usage in hrefs/divs | ||||
|     {'pattern': r'^[^{].*?[^\/\#\-"]([jJ]avascript)',  # exclude usage in hrefs/divs/custom-markdown | ||||
|      'exclude': {"docs/documentation/api.md"}, | ||||
|      'description': "javascript should be spelled JavaScript"}, | ||||
|     {'pattern': r'''[^\/\-\."'\_\=\>]([gG]ithub)[^\.\-\_"\<]''',  # exclude usage in hrefs/divs | ||||
|   | ||||
		Reference in New Issue
	
	Block a user