@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.
@@ -385,7 +385,7 @@ function print(element, printWindow) {
385
385
  */
386
386
  function formatUnit(value) {
387
387
  const result = value + '';
388
- if (result === 'auto' || result.indexOf('%') !== -1 || result.indexOf('px') !== -1) {
388
+ if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
389
389
  return result;
390
390
  }
391
391
  return result + 'px';
@@ -4790,7 +4790,8 @@ function selectAll(selector, context = document, needsVDOM) {
4790
4790
  * @private
4791
4791
  */
4792
4792
  function querySelectId(selector) {
4793
- if (selector.match(/#[0-9]/g)) {
4793
+ const charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
4794
+ if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
4794
4795
  const idList = selector.split(',');
4795
4796
  for (let i = 0; i < idList.length; i++) {
4796
4797
  const list = idList[i].split(' ');
@@ -4798,7 +4799,7 @@ function querySelectId(selector) {
4798
4799
  if (list[j].indexOf('#') > -1) {
4799
4800
  if (!list[j].match(/\[.*\]/)) {
4800
4801
  const splitId = list[j].split('#');
4801
- if (splitId[1].match(/^\d/)) {
4802
+ if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
4802
4803
  const setId = list[j].split('.');
4803
4804
  setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
4804
4805
  list[j] = setId.join('.');