fix(identity): implement the default exact record comparator

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Celekli
2026-10-13 11:42:54 -04:00
parent 4bce55aa8b
commit 2903b79e0a
+5
View File
@@ -155,6 +155,11 @@ class IdentityMatcher:
return weighted_score / total_weight if total_weight > 0 else 0.0
def compare(self, value_a: str, value_b: str, comparator: str) -> float:
if comparator != "exact":
raise ValueError(f"Unsupported comparator: {comparator}")
return 1.0 if value_a == value_b else 0.0
def normalize(self, value: str, normalizer: str) -> str:
if normalizer == "email":
return value.lower().strip()