mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 00:07:56 +08:00
Fix overlap check
This commit is contained in:
@@ -36,7 +36,7 @@ class Ranged a where
|
||||
end :: a -> Position
|
||||
overlap :: a -> a -> Bool
|
||||
overlap x y =
|
||||
(yStart >= xStart && yStart < xEnd) || (yStart < xStart && yEnd > xStart)
|
||||
xEnd > yStart && yEnd > xStart
|
||||
where
|
||||
yStart = start y
|
||||
yEnd = end y
|
||||
|
Reference in New Issue
Block a user