Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bukowa authored and Gerrit0 committed Jul 10, 2024
1 parent ef0f26e commit 21cf5ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/converter/comments/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ export function parseCommentString(
if (firstBlock.text.startsWith(`---${lineBreak}`)) {
const end = firstBlock.text.indexOf(`${lineBreak}---${lineBreak}`);
if (end !== -1) {
const yamlText = firstBlock.text.slice(`---${lineBreak}`.length, end);
const yamlText = firstBlock.text.slice(
`---${lineBreak}`.length,
end,
);
firstBlock.text = firstBlock.text
.slice(end + `${lineBreak}---${lineBreak}`.length)
.trimStart();
Expand Down

0 comments on commit 21cf5ae

Please sign in to comment.