vscode-html-languageservice
Advanced tools
Comparing version 2.1.9 to 2.1.10
@@ -40,2 +40,13 @@ /*--------------------------------------------------------------------------------------------- | ||
range = Range.create(document.positionAt(startOffset), document.positionAt(endOffset)); | ||
//Do not modify if substring in inside an element | ||
var firstHalf = value.substring(0, startOffset); | ||
var secondHalf = value.substring(endOffset, value.length); | ||
if (new RegExp(/.*[<][^>]*$/).test(firstHalf) && new RegExp(/^[^<]*[>].*/).test(secondHalf)) { | ||
//return without modification | ||
value = value.substring(startOffset, endOffset); | ||
return [{ | ||
range: range, | ||
newText: value | ||
}]; | ||
} | ||
includesEnd = endOffset === value.length; | ||
@@ -42,0 +53,0 @@ value = value.substring(startOffset, endOffset); |
@@ -50,2 +50,13 @@ (function (factory) { | ||
range = vscode_languageserver_types_1.Range.create(document.positionAt(startOffset), document.positionAt(endOffset)); | ||
//Do not modify if substring in inside an element | ||
var firstHalf = value.substring(0, startOffset); | ||
var secondHalf = value.substring(endOffset, value.length); | ||
if (new RegExp(/.*[<][^>]*$/).test(firstHalf) && new RegExp(/^[^<]*[>].*/).test(secondHalf)) { | ||
//return without modification | ||
value = value.substring(startOffset, endOffset); | ||
return [{ | ||
range: range, | ||
newText: value | ||
}]; | ||
} | ||
includesEnd = endOffset === value.length; | ||
@@ -52,0 +63,0 @@ value = value.substring(startOffset, endOffset); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/htmlLanguageService.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
707388
15976