htmljs-parser 5.1.0 → 5.1.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1258,7 +1258,7 @@ var HTML_CONTENT = {
|
|
|
1258
1258
|
this.endText();
|
|
1259
1259
|
this.enterState(states_exports.INLINE_SCRIPT);
|
|
1260
1260
|
this.pos++;
|
|
1261
|
-
} else if (code === 47 /* FORWARD_SLASH */) {
|
|
1261
|
+
} else if (code === 47 /* FORWARD_SLASH */ && isWhitespaceCode(this.lookAtCharCodeAhead(-1))) {
|
|
1262
1262
|
switch (this.lookAtCharCodeAhead(1)) {
|
|
1263
1263
|
case 47 /* FORWARD_SLASH */:
|
|
1264
1264
|
this.endText();
|
package/dist/index.mjs
CHANGED
|
@@ -1234,7 +1234,7 @@ var HTML_CONTENT = {
|
|
|
1234
1234
|
this.endText();
|
|
1235
1235
|
this.enterState(states_exports.INLINE_SCRIPT);
|
|
1236
1236
|
this.pos++;
|
|
1237
|
-
} else if (code === 47 /* FORWARD_SLASH */) {
|
|
1237
|
+
} else if (code === 47 /* FORWARD_SLASH */ && isWhitespaceCode(this.lookAtCharCodeAhead(-1))) {
|
|
1238
1238
|
switch (this.lookAtCharCodeAhead(1)) {
|
|
1239
1239
|
case 47 /* FORWARD_SLASH */:
|
|
1240
1240
|
this.endText();
|
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.1.
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.4",
|
|
7
7
|
"@changesets/cli": "^2.22.0",
|