mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +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
parent
5f3849b517
commit
61f6a6e9bb
@@ -542,7 +542,7 @@ css_rules = RuleList(
|
|||||||
)
|
)
|
||||||
|
|
||||||
prose_style_rules: List["Rule"] = [
|
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"},
|
'exclude': {"docs/documentation/api.md"},
|
||||||
'description': "javascript should be spelled JavaScript"},
|
'description': "javascript should be spelled JavaScript"},
|
||||||
{'pattern': r'''[^\/\-\."'\_\=\>]([gG]ithub)[^\.\-\_"\<]''', # exclude usage in hrefs/divs
|
{'pattern': r'''[^\/\-\."'\_\=\>]([gG]ithub)[^\.\-\_"\<]''', # exclude usage in hrefs/divs
|
||||||
|
|||||||
Reference in New Issue
Block a user