Skip to content

Commit

Permalink
allow any number to trigger ordered list
Browse files Browse the repository at this point in the history
fixes #1749
  • Loading branch information
jhchen committed Oct 23, 2017
1 parent b49fd68 commit 1a5bebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Keyboard.DEFAULTS = {
key: ' ',
collapsed: true,
format: { list: false },
prefix: /^\s*?(1\.|-|\[ ?\]|\[x\])$/,
prefix: /^\s*?(\d+\.|-|\[ ?\]|\[x\])$/,
handler: function(range, context) {
let length = context.prefix.length;
let [line, offset] = this.quill.getLine(range.index);
Expand Down

0 comments on commit 1a5bebb

Please sign in to comment.