From f47a20d2b90a3c50fa1312f7e99012d6de6d5914 Mon Sep 17 00:00:00 2001 From: natyusha <985941+natyusha@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:03:37 -0400 Subject: [PATCH] Add missing "s?" in CleanInfoLinesRegex (#1129) --- src/components/Collection/CleanDescription.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Collection/CleanDescription.tsx b/src/components/Collection/CleanDescription.tsx index fe36d8c4..df5b3d3f 100644 --- a/src/components/Collection/CleanDescription.tsx +++ b/src/components/Collection/CleanDescription.tsx @@ -7,7 +7,7 @@ import { useSettingsQuery } from '@/core/react-query/settings/queries'; // The question marks are there because people can't spell… // eslint-disable-next-line operator-linebreak -- Because dprint and eslint can't agree otherwise. Feel free to fix it. const CleanInfoLinesRegex = - /\(?\b((Modified )?Sour?ce|Note( [1-9])?|Summ?ary|From|See Also):(?!$| a daikon)([^\r\n]+|$)/img; + /\(?\b((Modified )?Sour?ces?|Note( [1-9])?|Summ?ary|From|See Also):(?!$| a daikon)([^\r\n]+|$)/img; // eslint-disable-next-line operator-linebreak -- Because dprint and eslint can't agree otherwise. Feel free to fix it. const CleanMiscLinesRegex =