htmljs-parser 5.7.3 → 5.7.4

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.
package/dist/index.js CHANGED
@@ -1792,7 +1792,12 @@ var EXPRESSION = {
1792
1792
  case 41 /* CLOSE_PAREN */:
1793
1793
  case 93 /* CLOSE_SQUARE_BRACKET */:
1794
1794
  case 125 /* CLOSE_CURLY_BRACE */:
1795
- case (expression.inType && 62 /* CLOSE_ANGLE_BRACKET */): {
1795
+ case 62 /* CLOSE_ANGLE_BRACKET */: {
1796
+ if (code === 62 /* CLOSE_ANGLE_BRACKET */) {
1797
+ if (!expression.inType || this.lookAtCharCodeAhead(-1) === 61 /* EQUAL */) {
1798
+ break;
1799
+ }
1800
+ }
1796
1801
  if (!expression.groupStack.length) {
1797
1802
  return this.emitError(
1798
1803
  expression,
package/dist/index.mjs CHANGED
@@ -1767,7 +1767,12 @@ var EXPRESSION = {
1767
1767
  case 41 /* CLOSE_PAREN */:
1768
1768
  case 93 /* CLOSE_SQUARE_BRACKET */:
1769
1769
  case 125 /* CLOSE_CURLY_BRACE */:
1770
- case (expression.inType && 62 /* CLOSE_ANGLE_BRACKET */): {
1770
+ case 62 /* CLOSE_ANGLE_BRACKET */: {
1771
+ if (code === 62 /* CLOSE_ANGLE_BRACKET */) {
1772
+ if (!expression.inType || this.lookAtCharCodeAhead(-1) === 61 /* EQUAL */) {
1773
+ break;
1774
+ }
1775
+ }
1771
1776
  if (!expression.groupStack.length) {
1772
1777
  return this.emitError(
1773
1778
  expression,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "htmljs-parser",
3
3
  "description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
4
- "version": "5.7.3",
4
+ "version": "5.7.4",
5
5
  "devDependencies": {
6
6
  "@changesets/changelog-github": "^0.5.0",
7
7
  "@changesets/cli": "^2.27.1",