Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(
newline-afer-description
): when finding last description line, …
…don't look beyond the length of the description. The previous check for the last description line was redundant and problematic. The search for the last line was mistakenly checking for the last match within the full comment, so if the last line of the description were duplicated later, that position was used, and since that position couldn't be find within the `comment-parser` description, there would be an error. It was also mistakenly stripping carriage returns in part of the comparison when there could be carriage returns in the other part.
- Loading branch information
Showing
3 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters