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:
Rohitt Vashishtha
2020-05-17 10:23:39 +00:00
committed by Tim Abbott
parent 5f3849b517
commit 61f6a6e9bb

View File

@@ -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