Refactor regex handling and improve null checks across various components
Updated regex patterns in episode parsing and metadata handling to use String.raw for better readability and maintainability. Enhanced null checks in BlockBuilder, MediaPanel, and ShowMetadataCard components to prevent potential runtime errors. Consolidated imports in UsersPanel for cleaner code structure.
This commit is contained in:
@@ -237,8 +237,7 @@ export const en = {
|
||||
toShowAuto: 'auto',
|
||||
toShowRegex: 'Episode regex',
|
||||
toShowRegexInvalid: 'invalid regex',
|
||||
toShowHint:
|
||||
'Season and regex are optional: numbers are usually detected automatically (see below). Regex: 1 group = episode, 2 groups = season and episode. Example: ^(\\d+) for “01. Title.mkv”.',
|
||||
toShowHint: String.raw`Season and regex are optional: numbers are usually detected automatically (see below). Regex: 1 group = episode, 2 groups = season and episode. Example: ^(\d+) for “01. Title.mkv”.`,
|
||||
toShowPreview: 'What we detect',
|
||||
toShowMatched: 'show detected for {{matched}} of {{total}}',
|
||||
applyToAll: 'Set for all…',
|
||||
|
||||
Reference in New Issue
Block a user