@syncfusion/ej2-base 20.1.48 → 20.1.50

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.
@@ -8765,9 +8765,11 @@ function compile$1(template, helper, ignorePrefix) {
8765
8765
  var str1 = str;
8766
8766
  for (var i=0; i < check.length; i++) {
8767
8767
  var check1 = str.match(hrefRegex)[i].split('href=')[1];
8768
- var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
8769
- change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
8770
- str1 = str1.replace(check1, change);
8768
+ if (check1) {
8769
+ var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
8770
+ change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
8771
+ str1 = str1.replace(check1, change);
8772
+ }
8771
8773
  }
8772
8774
  str = str.replace(str, str1);
8773
8775
  }