mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
removing transformation to lowercase since it is not needed at all.
This commit is contained in:
parent
0bee3901b6
commit
6f8020e30d
1 changed files with 2 additions and 3 deletions
|
|
@ -60,15 +60,14 @@ def match_tags(document, classifier):
|
|||
def matches(matching_model, document):
|
||||
search_kwargs = {}
|
||||
|
||||
document_content = document.content
|
||||
|
||||
# Check that match is not empty
|
||||
if matching_model.match.strip() == "":
|
||||
return False
|
||||
|
||||
if matching_model.is_insensitive:
|
||||
search_kwargs = {"flags": re.IGNORECASE}
|
||||
document_content = document.content.lower()
|
||||
else:
|
||||
document_content = document.content
|
||||
|
||||
if matching_model.matching_algorithm == MatchingModel.MATCH_ALL:
|
||||
for word in _split_match(matching_model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue