A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
removing transformation to lowercase since it is not needed at all.
Daniel Breitlauch6f8020e30d75
diff --git a/src/documents/matching.py b/src/documents/matching.pyindex 523ee028e..b87fa0461 100644--- a/src/documents/matching.py+++ b/src/documents/matching.py@@ -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 emptyif matching_model.match.strip() == "":return Falseif matching_model.is_insensitive:search_kwargs = {"flags": re.IGNORECASE}- document_content = document.content.lower()- else:- document_content = document.contentif matching_model.matching_algorithm == MatchingModel.MATCH_ALL:for word in _split_match(matching_model):