diff --git a/Sortable.js b/Sortable.js index cf0b5f0..5c619b5 100644 --- a/Sortable.js +++ b/Sortable.js @@ -885,7 +885,7 @@ selector = selector.split('.'); var tag = selector.shift().toUpperCase(), - re = new RegExp('\\s(' + selector.join('|') + ')\\s', 'g'); + re = new RegExp('\\s(' + selector.join('|') + ')(?=\\s)', 'g'); do { if (