Open tjohannto opened 4 years ago
Currently spaces are not replaces in generateTargetClass
generateTargetClass
ChartInternal.prototype.generateTargetClass = function (targetId) { return targetId || targetId === 0 ? ('-' + targetId).replace(/\s/g, '-') : ''; };
I think /\W+/g would be better as it would also replace spaces.
/\W+/g
ChartInternal.prototype.generateTargetClass = function (targetId) { return targetId || targetId === 0 ? ('-' + targetId).replace(/\W+/g, '-') : ''; };
Am I missing s.th.?
Currently spaces are not replaces in
generateTargetClass
I think
/\W+/g
would be better as it would also replace spaces.Am I missing s.th.?