Skip to content

Commit 44908cb

Browse files
committed
Fix oxlint warnings (shown in verbose only)
1 parent 68a5f6e commit 44908cb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

scripts/migrate-blogger.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ interface BloggerEntry {
4949
| null;
5050
}
5151

52-
interface MigratedPost {
53-
slug: string;
54-
title: string;
55-
author: string;
56-
publishDate: string;
57-
updatedDate: string;
58-
tags: string[];
59-
description: string;
60-
legacyUrl: string;
61-
content: string;
62-
}
63-
6452
// ── Turndown Setup ────────────────────────────────────────────
6553
function createTurndown(): TurndownService {
6654
const td = new TurndownService({
@@ -317,7 +305,7 @@ function generateDescription(markdown: string): string {
317305
function yamlEscape(str: string): string {
318306
// If string contains special chars, is numeric, or starts with special chars, wrap in single quotes
319307
if (
320-
/[:#\[\]{}&*!|>'"%@`?,\n]/.test(str) ||
308+
/[:#[{}&*!|>'"%@`?,\n\]]/.test(str) ||
321309
str.startsWith("-") ||
322310
str.startsWith(" ") ||
323311
/^\d+(\.\d+)?$/.test(str) ||

0 commit comments

Comments
 (0)