Skip to content

Commit a647c50

Browse files
committed
Fix semantic highlighting
Resolves #2247
1 parent 3b303db commit a647c50

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
### Bug Fixes
4+
5+
- Fixed broken semantic coloring, #2247.
6+
37
## v0.24.3 (2023-04-16)
48

59
### Bug Fixes

Diff for: src/lib/models/reflections/kind.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ export namespace ReflectionKind {
143143
}
144144

145145
export function classString(kind: ReflectionKind): string {
146-
return `tsd-kind-${ReflectionKind[kind].replace(
147-
/(.)([A-Z])/g,
148-
(_m, a, b) => `${a}-${b}`.toLowerCase()
149-
)}`;
146+
return `tsd-kind-${ReflectionKind[kind]
147+
.replace(/(.)([A-Z])/g, (_m, a, b) => `${a}-${b}`)
148+
.toLowerCase()}`;
150149
}
151150
}
152151

0 commit comments

Comments
 (0)