From a304f9d15f3a812fb98de202e28e1acf01cf9dad Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 3 Mar 2017 09:03:11 -0500 Subject: [PATCH] split tags on commas and whitespace --- notebook/static/notebook/js/celltoolbarpresets/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {