fix(markdown): escape closing square bracket

This commit is contained in:
teidesu 2021-04-25 13:26:43 +03:00
parent 64d860cc4c
commit f55d099b5f

View file

@ -11,7 +11,7 @@ const TAG_STRIKE = '~~'
const TAG_CODE = '`'
const TAG_PRE = '```'
const TO_BE_ESCAPED = /[*_\-~`[\\]/g
const TO_BE_ESCAPED = /[*_\-~`[\\]]/g
/**
* Markdown MessageEntity parser.