Explorar o código

Fix splices at the start not being linkified

Thomas Dy %!s(int64=3) %!d(string=hai) anos
pai
achega
7111db89b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      format.ts

+ 1 - 1
format.ts

@@ -175,7 +175,7 @@ class TextFormatter {
 
   bodyHTML(): SafeString {
     const splices = this.splices
-      .filter(({ indices }) => indices[0] && indices[1])
+      .filter(({ indices }) => indices[0] !== undefined && indices[1] !== undefined)
       .sort((a, b) => a.indices[0] - b.indices[0]);
 
     let index = 0;