Browse Source

Update markdown.ts (#707)

Maxence 10 tháng trước cách đây
mục cha
commit
5581af24fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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];