htmljs-parser 5.4.0 → 5.4.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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1805,7 +1805,8 @@ function lookBehindForOperator(data, pos) {
|
|
|
1805
1805
|
for (const keyword of unaryKeywords) {
|
|
1806
1806
|
const keywordPos = lookBehindFor(data, curPos, keyword);
|
|
1807
1807
|
if (keywordPos !== -1) {
|
|
1808
|
-
|
|
1808
|
+
const prevCode = data.charCodeAt(keywordPos - 1);
|
|
1809
|
+
return prevCode === 46 /* PERIOD */ || isWordCode(prevCode) ? -1 : keywordPos;
|
|
1809
1810
|
}
|
|
1810
1811
|
}
|
|
1811
1812
|
return -1;
|
package/dist/index.mjs
CHANGED
|
@@ -1780,7 +1780,8 @@ function lookBehindForOperator(data, pos) {
|
|
|
1780
1780
|
for (const keyword of unaryKeywords) {
|
|
1781
1781
|
const keywordPos = lookBehindFor(data, curPos, keyword);
|
|
1782
1782
|
if (keywordPos !== -1) {
|
|
1783
|
-
|
|
1783
|
+
const prevCode = data.charCodeAt(keywordPos - 1);
|
|
1784
|
+
return prevCode === 46 /* PERIOD */ || isWordCode(prevCode) ? -1 : keywordPos;
|
|
1784
1785
|
}
|
|
1785
1786
|
}
|
|
1786
1787
|
return -1;
|
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.4.
|
|
4
|
+
"version": "5.4.1",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.7",
|
|
7
7
|
"@changesets/cli": "^2.25.2",
|