Skip to content

Commit

Permalink
Adding better matching for strikethrough
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunburdick committed May 17, 2016
1 parent b39540c commit 3c42348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class Bot {
.replace(/~([^~]*)~/g, '_$1')

// Strikethrough
.replace(/((\W)\-|(^)\-)( *)(\S.*?\S)( *)(\-(\W)|\-($))/g, '$2$3$4~$5~$6$8')
.replace(/((\W)\-|(^)\-)( *)(\S.*?\S)( *)(\-(\W)|\-($))/gm, '$2$3$4~$5~$6$8')

// Code Block
.replace(/\{code(:([a-z]+))?\}([^]*)\{code\}/gm, '```$2$3```')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack-jirabot",
"version": "2.2.1",
"version": "2.2.2",
"description": "Slackbot for interacting with JIRA",
"main": "app.js",
"private": true,
Expand Down

0 comments on commit 3c42348

Please sign in to comment.