Skip to content

Commit

Permalink
Fix semantic highlighting
Browse files Browse the repository at this point in the history
Resolves #2247
  • Loading branch information
Gerrit0 committed Apr 16, 2023
1 parent 3b303db commit a647c50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

### Bug Fixes

- Fixed broken semantic coloring, #2247.

## v0.24.3 (2023-04-16)

### Bug Fixes
Expand Down
7 changes: 3 additions & 4 deletions src/lib/models/reflections/kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ export namespace ReflectionKind {
}

export function classString(kind: ReflectionKind): string {
return `tsd-kind-${ReflectionKind[kind].replace(
/(.)([A-Z])/g,
(_m, a, b) => `${a}-${b}`.toLowerCase()
)}`;
return `tsd-kind-${ReflectionKind[kind]
.replace(/(.)([A-Z])/g, (_m, a, b) => `${a}-${b}`)
.toLowerCase()}`;
}
}

Expand Down

0 comments on commit a647c50

Please sign in to comment.