ui: tweak table of contents prefix

This commit is contained in:
Jean-Philippe Sirois
2020-05-28 00:47:01 -04:00
parent 2a7ca4299f
commit f6c8f9e6fe
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ function extractTitle(title: string): ITitle {
const rest = maybePrefix ? title.replace(maybePrefix[0], "") : title
return {
prefix: maybePrefix ? maybePrefix[0] : undefined,
title: rest,
prefix: maybePrefix ? `${maybePrefix[0]} ` : undefined,
title: rest.trim(),
}
}