htmljs-parser 5.5.0 → 5.5.1

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
@@ -1888,7 +1888,22 @@ function lookAheadForOperator(data, pos) {
1888
1888
  }
1889
1889
  }
1890
1890
  function canFollowDivision(code) {
1891
- return isWordCode(code) || code === 37 /* PERCENT */ || code === 41 /* CLOSE_PAREN */ || code === 46 /* PERIOD */ || code === 60 /* OPEN_ANGLE_BRACKET */ || code === 93 /* CLOSE_SQUARE_BRACKET */ || code === 125 /* CLOSE_CURLY_BRACE */;
1891
+ if (isWordCode(code))
1892
+ return true;
1893
+ switch (code) {
1894
+ case 96 /* BACKTICK */:
1895
+ case 39 /* SINGLE_QUOTE */:
1896
+ case 34 /* DOUBLE_QUOTE */:
1897
+ case 37 /* PERCENT */:
1898
+ case 41 /* CLOSE_PAREN */:
1899
+ case 46 /* PERIOD */:
1900
+ case 60 /* OPEN_ANGLE_BRACKET */:
1901
+ case 93 /* CLOSE_SQUARE_BRACKET */:
1902
+ case 125 /* CLOSE_CURLY_BRACE */:
1903
+ return true;
1904
+ default:
1905
+ return false;
1906
+ }
1892
1907
  }
1893
1908
  function isWordCode(code) {
1894
1909
  return code >= 65 /* UPPER_A */ && code <= 90 /* UPPER_Z */ || code >= 97 /* LOWER_A */ && code <= 122 /* LOWER_Z */ || code >= 48 /* NUMBER_0 */ && code <= 57 /* NUMBER_9 */ || code == 36 /* DOLLAR */ || code === 95 /* UNDERSCORE */;
package/dist/index.mjs CHANGED
@@ -1863,7 +1863,22 @@ function lookAheadForOperator(data, pos) {
1863
1863
  }
1864
1864
  }
1865
1865
  function canFollowDivision(code) {
1866
- return isWordCode(code) || code === 37 /* PERCENT */ || code === 41 /* CLOSE_PAREN */ || code === 46 /* PERIOD */ || code === 60 /* OPEN_ANGLE_BRACKET */ || code === 93 /* CLOSE_SQUARE_BRACKET */ || code === 125 /* CLOSE_CURLY_BRACE */;
1866
+ if (isWordCode(code))
1867
+ return true;
1868
+ switch (code) {
1869
+ case 96 /* BACKTICK */:
1870
+ case 39 /* SINGLE_QUOTE */:
1871
+ case 34 /* DOUBLE_QUOTE */:
1872
+ case 37 /* PERCENT */:
1873
+ case 41 /* CLOSE_PAREN */:
1874
+ case 46 /* PERIOD */:
1875
+ case 60 /* OPEN_ANGLE_BRACKET */:
1876
+ case 93 /* CLOSE_SQUARE_BRACKET */:
1877
+ case 125 /* CLOSE_CURLY_BRACE */:
1878
+ return true;
1879
+ default:
1880
+ return false;
1881
+ }
1867
1882
  }
1868
1883
  function isWordCode(code) {
1869
1884
  return code >= 65 /* UPPER_A */ && code <= 90 /* UPPER_Z */ || code >= 97 /* LOWER_A */ && code <= 122 /* LOWER_Z */ || code >= 48 /* NUMBER_0 */ && code <= 57 /* NUMBER_9 */ || code == 36 /* DOLLAR */ || code === 95 /* UNDERSCORE */;
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.5.0",
4
+ "version": "5.5.1",
5
5
  "devDependencies": {
6
6
  "@changesets/changelog-github": "^0.4.7",
7
7
  "@changesets/cli": "^2.25.2",