htmljs-parser 5.2.0 → 5.2.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
|
@@ -2317,6 +2317,7 @@ function checkForPlaceholder(parser, code) {
|
|
|
2317
2317
|
curCode = parser.lookAtCharCodeAhead(ahead + 2);
|
|
2318
2318
|
}
|
|
2319
2319
|
if (curCode === 123 /* OPEN_CURLY_BRACE */) {
|
|
2320
|
+
parser.forward = 0;
|
|
2320
2321
|
if (ahead) {
|
|
2321
2322
|
const remainder = ahead % 2;
|
|
2322
2323
|
const extra = (ahead + remainder) / 2;
|
|
@@ -2336,7 +2337,6 @@ function checkForPlaceholder(parser, code) {
|
|
|
2336
2337
|
parser.endText();
|
|
2337
2338
|
parser.enterState(PLACEHOLDER).escape = escape;
|
|
2338
2339
|
parser.pos += escape ? 2 : 3;
|
|
2339
|
-
parser.forward = 0;
|
|
2340
2340
|
parser.enterState(states_exports.EXPRESSION).shouldTerminate = matchesCloseCurlyBrace;
|
|
2341
2341
|
return true;
|
|
2342
2342
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2292,6 +2292,7 @@ function checkForPlaceholder(parser, code) {
|
|
|
2292
2292
|
curCode = parser.lookAtCharCodeAhead(ahead + 2);
|
|
2293
2293
|
}
|
|
2294
2294
|
if (curCode === 123 /* OPEN_CURLY_BRACE */) {
|
|
2295
|
+
parser.forward = 0;
|
|
2295
2296
|
if (ahead) {
|
|
2296
2297
|
const remainder = ahead % 2;
|
|
2297
2298
|
const extra = (ahead + remainder) / 2;
|
|
@@ -2311,7 +2312,6 @@ function checkForPlaceholder(parser, code) {
|
|
|
2311
2312
|
parser.endText();
|
|
2312
2313
|
parser.enterState(PLACEHOLDER).escape = escape;
|
|
2313
2314
|
parser.pos += escape ? 2 : 3;
|
|
2314
|
-
parser.forward = 0;
|
|
2315
2315
|
parser.enterState(states_exports.EXPRESSION).shouldTerminate = matchesCloseCurlyBrace;
|
|
2316
2316
|
return true;
|
|
2317
2317
|
}
|
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.2.
|
|
4
|
+
"version": "5.2.1",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.7",
|
|
7
7
|
"@changesets/cli": "^2.25.2",
|