Comparing version
@@ -165,3 +165,3 @@ "use strict"; | ||
const selfClosing = lastChar === TAG_CLOSE; | ||
const endPos = i - (selfClosing ? 3 : 2); | ||
const endPos = i - (selfClosing ? 1 : 0); | ||
this.#attributeEndPos = endPos; | ||
@@ -168,0 +168,0 @@ this.doTagEnd(this.#stateStartPos, endPos, true, selfClosing); |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"main": "dist/index.js", | ||
@@ -27,3 +27,4 @@ "license": "MIT", | ||
"prepublishOnly": "rm -rf dist && tsc -p tsconfig.build.json", | ||
"bench": "yarn --silent build && node dist/bench/index.js", | ||
"bench": "yarn --silent build && LIB_ONLY=true node dist/bench/index.js", | ||
"bench:all": "yarn --silent build && node dist/bench/index.js", | ||
"test": "vitest run" | ||
@@ -30,0 +31,0 @@ }, |
19736
0.42%