mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Normalize names before unioning
This commit is contained in:
parent
f9bbe63a4f
commit
1574e74bcb
@ -58,7 +58,7 @@ examples directory = do
|
||||
|
||||
let lookupName name = (lookupNormalized name as, lookupNormalized name bs, lookupNormalized name jsons, lookupNormalized name patches, lookupNormalized name splits)
|
||||
|
||||
let keys = normalizeName <$> union as bs
|
||||
let keys = union (normalizeName <$> as) (normalizeName <$> bs)
|
||||
pure $ lookupName <$> keys
|
||||
where
|
||||
lookupNormalized name = find $ (== name) . normalizeName
|
||||
|
Loading…
Reference in New Issue
Block a user