Skip to content

Commit 7227b87

Browse files
authored
docs(gen): forcing event names to be lowercase (microsoft#478)
1 parent d23176c commit 7227b87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/documentation_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _add_link(self, kind: str, clazz: str, member: str, alias: str) -> None:
101101
var_name = to_snake_case(f"{match.group(1).lower()}{match.group(2)}")
102102
new_name = to_snake_case(alias)
103103
if kind == "event":
104+
new_name = new_name.lower()
104105
self.links[
105106
f"[`event: {clazz}.{member}`]"
106107
] = f"`{var_name}.on('{new_name}')`"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy