Skip to content

Commit 40aef8f

Browse files
committed
refactor(web): drop the unrelated titleCaseCommandSegment docstring
1 parent b35049b commit 40aef8f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎apps/web/src/components/settings/KeybindingsSettings.logic.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ export function commandLabel(command: KeybindingCommand): string {
329329
return raw.split(".").map(titleCaseCommandSegment).join(": ");
330330
}
331331

332-
/** Title-cases one command id segment, splitting camelCase, `-`, `_`, and spaces into words. */
333332
function titleCaseCommandSegment(segment: string): string {
334333
const words: Array<string> = [];
335334
for (const part of segment.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[-_\s]+/)) {

0 commit comments

Comments
 (0)