diff --git a/notebook/static/notebook/js/celltoolbarpresets/tags.js b/notebook/static/notebook/js/celltoolbarpresets/tags.js index 7508b0ab2..a0e1518ec 100644 --- a/notebook/static/notebook/js/celltoolbarpresets/tags.js +++ b/notebook/static/notebook/js/celltoolbarpresets/tags.js @@ -46,8 +46,8 @@ define([ }; var preprocess_input = function(input) { - // Split on whitespace: - return input.split(/\s/); + // Split on whitespace + commas: + return input.split(/[,\s]+/) }; var add_tag = function(cell, tag_container, on_remove) {