Fix an issue where the line extractor's trailing whitespace trimming sometimes trimmed a non-whitespace character

This commit is contained in:
Pete Gonzalez 2020-09-04 08:41:34 -07:00
Родитель 8c0d15ce10
Коммит 6582125c40
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -151,7 +151,7 @@ export class LineExtractor {
// Example: "/**\nL1*/"
// (collectingLineStart was the start of this line)
collectingLineEnd = currentIndex;
collectingLineEnd = nextIndex;
state = State.CollectingLine;
}
break;

Просмотреть файл

@ -266,10 +266,10 @@ Object {
"comment": "/**[n][c][c][c][n]a[n] b[n] c [n] d[n][c][c][c][n] */",
"lines": Array [
"[c][c][c]",
"",
" ",
" ",
" ",
"a",
" b",
" c",
" d",
"[c][c][c]",
],
"logMessages": Array [],