Skip to content

Commit

Permalink
LPS-86806 Fix incorrect pos
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuijser authored and brianchandotcom committed Feb 15, 2019
1 parent 7b0091c commit c763449
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -551,7 +551,7 @@ private static String _parseContent(
!astDetailContent.contains("\n\n")) {

int startPos = _getLineStartPos(content, startLineNumber);
int endPos = _getLineStartPos(content, endLineNumber + 1) + 1;
int endPos = _getLineStartPos(content, endLineNumber + 1) - 1;

return StringUtil.replaceFirst(
content, content.substring(startPos, endPos), javaTermContent,
Expand Down

0 comments on commit c763449

Please sign in to comment.