Skip to content

Commit 640f35d

Browse files
committed
refactor: use lowercase style comparison
1 parent 1ab33a0 commit 640f35d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/declaration-signature-to-html.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export const declarationSignatureToHtml = async (
9898
{
9999
span(node) {
100100
// Don't link from parameter names (e.g., don't link from `foo` in `foo: SomeType`).
101-
if (node.properties["style"] === "color:#E36209;--shiki-dark:#FFAB70") return;
101+
const style = String(node.properties["style"]).toLowerCase();
102+
if (style === "color:#e36209;--shiki-dark:#ffab70") return;
102103

103104
const firstChild = node.children[0];
104105
if (firstChild?.type !== "text") return;

0 commit comments

Comments
 (0)