Skip to content

Commit 6196141

Browse files
cmungallCopilot
andauthored
Update src/linkml_reference_validator/validation/supporting_text_validator.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cee7018 commit 6196141

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/linkml_reference_validator/validation/supporting_text_validator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ def generate_suggested_fix(
304304
if best_match and similarity > 70:
305305
if similarity > 90:
306306
# Check if it's just a capitalization difference
307-
if supporting_text.lower() == best_match.lower():
307+
supporting_text_lower = supporting_text.lower()
308+
best_match_lower = best_match.lower()
309+
if supporting_text_lower == best_match_lower:
308310
return (
309311
f'Capitalization differs - try: "{best_match}"',
310312
best_match,

0 commit comments

Comments
 (0)