Skip to content

Commit

Permalink
Consider casing when picking which identified react components to keep
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindberg committed Nov 8, 2021
1 parent 7856ba7 commit a207ce5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class IdentifyReactComponents(
/* just one of each component (determined by name), which one is chosen by the `Ordering` implicit above */
def oneOfEach(scope: TreeScope, tree: ContainerTree): IArray[Component] =
all(scope, tree)
.groupBy(_.fullName)
.groupBy(_.fullName.unescaped.toLowerCase)
.mapToIArray {
case (_, sameName) =>
/* in this sorting the normally preferred component is *last* */
Expand Down

0 comments on commit a207ce5

Please sign in to comment.