diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/definition.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua index 207fc9cc..f94d3628 100644 --- a/script/core/definition.lua +++ b/script/core/definition.lua @@ -51,6 +51,9 @@ end --- @param path2 string --- @return number local function pathSimilarityRatio(path1, path2) + if path1 == path2 then + return 0 + end local parts1 = split(path1) local parts2 = split(path2) local distance = levenshteinDistance(parts1, parts2) |