mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
String regex filter criteria and selective autotag (#1082)
* Add regex string filter criterion * Use query interface for auto tagging * Use Query interface for filename parser * Remove query regex interfaces * Add selective auto tag * Use page size 0 as no limit
This commit is contained in:
@@ -166,6 +166,13 @@ func TestGalleryQueryPath(t *testing.T) {
|
||||
pathCriterion.Modifier = models.CriterionModifierNotEquals
|
||||
verifyGalleriesPath(t, r.Gallery(), pathCriterion)
|
||||
|
||||
pathCriterion.Modifier = models.CriterionModifierMatchesRegex
|
||||
pathCriterion.Value = "gallery.*1_Path"
|
||||
verifyGalleriesPath(t, r.Gallery(), pathCriterion)
|
||||
|
||||
pathCriterion.Modifier = models.CriterionModifierNotMatchesRegex
|
||||
verifyGalleriesPath(t, r.Gallery(), pathCriterion)
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user