Skip to content

Commit ed8ae42

Browse files
committed
Merge pull request #431 from amfleming/patch-3
Correctly match multiple class names
2 parents 9772577 + 7767536 commit ed8ae42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@
885885
selector = selector.split('.');
886886

887887
var tag = selector.shift().toUpperCase(),
888-
re = new RegExp('\\s(' + selector.join('|') + ')\\s', 'g');
888+
re = new RegExp('\\s(' + selector.join('|') + ')(?=\\s)', 'g');
889889

890890
do {
891891
if (

0 commit comments

Comments
 (0)