Skip to content

Commit

Permalink
fix(MarkdownV2): escape - in escape regex (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Jul 17, 2020
1 parent 8caba19 commit 7a39701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/markdownv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function escapeInteral(text: string, escapeChars: string): string {
}

function escape(text: string): string {
return text.replace(/[_*[\]()~`>#+-=|{}.!]/g, '\\$&')
return text.replace(/[_*[\]()~`>#+\-=|{}.!]/g, '\\$&')
}

function bold(text: string): string {
Expand Down

0 comments on commit 7a39701

Please sign in to comment.