@syncfusion/ej2-base 19.3.47 → 19.3.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -392,7 +392,7 @@ function print(element, printWindow) {
392
392
  */
393
393
  function formatUnit(value) {
394
394
  var result = value + '';
395
- if (result === 'auto' || result.indexOf('%') !== -1 || result.indexOf('px') !== -1) {
395
+ if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
396
396
  return result;
397
397
  }
398
398
  return result + 'px';
@@ -4923,7 +4923,8 @@ function selectAll(selector, context, needsVDOM) {
4923
4923
  * @private
4924
4924
  */
4925
4925
  function querySelectId(selector) {
4926
- if (selector.match(/#[0-9]/g)) {
4926
+ var charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
4927
+ if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
4927
4928
  var idList = selector.split(',');
4928
4929
  for (var i = 0; i < idList.length; i++) {
4929
4930
  var list = idList[i].split(' ');
@@ -4931,7 +4932,7 @@ function querySelectId(selector) {
4931
4932
  if (list[j].indexOf('#') > -1) {
4932
4933
  if (!list[j].match(/\[.*\]/)) {
4933
4934
  var splitId = list[j].split('#');
4934
- if (splitId[1].match(/^\d/)) {
4935
+ if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
4935
4936
  var setId = list[j].split('.');
4936
4937
  setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
4937
4938
  list[j] = setId.join('.');