🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/typescript-estree/src/convert-comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export function convertComments(
const textEnd =
comment.kind === ts.SyntaxKind.SingleLineCommentTrivia
? // single line comments end at the end
range[1] - textStart
range[1]
: // multiline comments end 2 characters early
range[1] - textStart - 2;
range[1] - 2;
comments.push({
type,
loc,
range,
value: code.slice(textStart, textStart + textEnd),
value: code.slice(textStart, textEnd),
});
},
ast,
Expand Down
Loading