mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Fixed: Return sensible value from Levenshtein when distance too large
This commit is contained in:
@@ -217,7 +217,7 @@ namespace NzbDrone.Common.Extensions
|
||||
if (distance > limit)
|
||||
{
|
||||
/* More than we wanted. Give up right away */
|
||||
return int.MaxValue;
|
||||
return Math.Max(target.Length, pattern.Length);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user