Bläddra i källkod

Update markdown.ts (#707)

Maxence 8 månader sedan
förälder
incheckning
5581af24fe
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      gramjs/extensions/markdown.ts

+ 1 - 1
gramjs/extensions/markdown.ts

@@ -38,7 +38,7 @@ export class MarkdownParser {
                     foundIndex - tempEntities[foundDelim].offset;
                 entities.push(tempEntities[foundDelim]);
             }
-            message = message.replace(foundDelim, "");
+            message = message.toString().replace(foundDelim, "");
             i = foundIndex;
         }
         return [message, entities];