diff --git a/src/js/select2/core.js b/src/js/select2/core.js index d42c4ead..361dd5c8 100644 --- a/src/js/select2/core.js +++ b/src/js/select2/core.js @@ -99,6 +99,7 @@ define([ id = Utils.generateChars(4); } + id = id.replace(/(:|\.|\[|\]|,)/g, ''); id = 'select2-' + id; return id;