Skip to content

Commit

Permalink
Added surrounding word for checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickin committed Mar 25, 2017
1 parent 508f89e commit 4a644dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ function toggleNumberList() {
}
}

var HasCheckboxes = /^(\s*)- \[[ x]{1}\] (.*)$/gm
var HasCheckboxes = /^(\s*)- \[[ x]{1}\] (.*)$/gmi
var AddCheckboxes = /^(\s*)(.+)$/gm
function toggleCheckboxes() {

if (!editorHelpers.isAnythingSelected()) {
editorHelpers.surroundSelection("- [ ]", "")
editorHelpers.surroundSelection("- [ ] ", "", /- \[[ x]{1}\] .+|.+/gi)
return;
}

Expand Down

0 comments on commit 4a644dd

Please sign in to comment.