From 814df465218d453184b7ffbc654c76078fb7a14c Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 16 Jan 2024 18:21:44 -0500 Subject: [PATCH] Don't warn about using the word intro in chapter names --- src/components/SponsorTimeEditComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index c6369e2e..7f30f0cc 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -34,7 +34,7 @@ export interface SponsorTimeEditState { chapterNameSelectorHovering: boolean; } -const categoryNamesGrams: string[] = [].concat(...CompileConfig.categoryList.filter((name) => name !== "chapter") +const categoryNamesGrams: string[] = [].concat(...CompileConfig.categoryList.filter((name) => !["chapter", "intro"].includes(name)) .map((name) => chrome.i18n.getMessage("category_" + name).split(/\/|\s|-/))); class SponsorTimeEditComponent extends React.Component {