mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 14:07:59 -06:00
Merge pull request #180 from losiu97/fix/add-match-none
BUGFIX add MATCH_NONE to tag matching options
This commit is contained in:
@@ -15,7 +15,7 @@ abstract class Label extends Equatable implements Comparable {
|
||||
final int? id;
|
||||
final String name;
|
||||
final String? slug;
|
||||
final String? match;
|
||||
final String match;
|
||||
final MatchingAlgorithm matchingAlgorithm;
|
||||
final bool? isInsensitive;
|
||||
final int? documentCount;
|
||||
@@ -26,7 +26,7 @@ abstract class Label extends Equatable implements Comparable {
|
||||
this.id,
|
||||
required this.name,
|
||||
this.matchingAlgorithm = MatchingAlgorithm.defaultValue,
|
||||
this.match,
|
||||
this.match = "",
|
||||
this.isInsensitive = true,
|
||||
this.documentCount,
|
||||
this.slug,
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
@JsonEnum(valueField: 'value')
|
||||
enum MatchingAlgorithm {
|
||||
none(0, "None: Disable matching"),
|
||||
anyWord(1, "Any: Match one of the following words"),
|
||||
allWords(2, "All: Match all of the following words"),
|
||||
exactMatch(3, "Exact: Match the following string"),
|
||||
|
||||
Reference in New Issue
Block a user