@rohal12/spindle-lsp 0.5.1 → 0.5.2
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/bin.js +1 -1
- package/dist/bin.js.map +2 -2
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -2880,7 +2880,7 @@ function segmentRegions(body) {
|
|
|
2880
2880
|
i++;
|
|
2881
2881
|
while (i < lines.length && depth > 0) {
|
|
2882
2882
|
htmlLines.push(lines[i]);
|
|
2883
|
-
const opens = (lines[i].match(new RegExp(`<${tagName}[\\s>]`, "gi")) ?? []).length;
|
|
2883
|
+
const opens = (lines[i].match(new RegExp(`<${tagName}(?:[\\s>]|$)`, "gi")) ?? []).length;
|
|
2884
2884
|
const closes = (lines[i].match(new RegExp(`</${tagName}\\s*>`, "gi")) ?? []).length;
|
|
2885
2885
|
depth += opens - closes;
|
|
2886
2886
|
i++;
|