KotlinStringLiteralTextEscaper: provides offsets for already decoded (KT-27380)
This commit is contained in:
@@ -41,6 +41,9 @@ class KotlinStringLiteralTextEscaper(host: KtStringTemplateExpression) : Literal
|
||||
is KtEscapeStringTemplateEntry -> {
|
||||
if (!rangeInsideHost.contains(childRange)) {
|
||||
//don't allow injection if its range starts or ends inside escaped sequence
|
||||
//but still process offsets for the already decoded part
|
||||
sourceOffsetsList.add(sourceOffset)
|
||||
sourceOffsets = sourceOffsetsList.toNativeArray()
|
||||
return false
|
||||
}
|
||||
val unescaped = child.unescapedValue
|
||||
|
||||
Reference in New Issue
Block a user