feat(filters): add regex support (#258)

This commit is contained in:
Ludvig Lundgren 2022-04-30 14:53:24 +02:00 committed by GitHub
parent e6c151a029
commit 5d032dd075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 101 additions and 6 deletions

View file

@ -256,6 +256,7 @@ export default function FilterDetails() {
max_size: filter.max_size,
delay: filter.delay,
priority: filter.priority,
use_regex: filter.use_regex || false,
shows: filter.shows,
years: filter.years,
resolutions: filter.resolutions || [],
@ -487,6 +488,9 @@ function Advanced() {
<CollapsableSection title="Releases" subtitle="Match only certain release names and/or ignore other release names">
<TextField name="match_releases" label="Match releases" columns={6} placeholder="eg. *some?movie*,*some?show*s01*" />
<TextField name="except_releases" label="Except releases" columns={6} placeholder="" />
<div className="col-span-6">
<SwitchGroup name="use_regex" label="Use Regex" />
</div>
</CollapsableSection>
<CollapsableSection title="Groups" subtitle="Match only certain groups and/or ignore other groups">