Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
also highlight lowercase matches
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGarus committed Mar 6, 2020
1 parent c40ddc2 commit 7908629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/id_with_highlighted_parts.dart
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class IdWithHighlightedParts extends StatelessWidget {
final highlights = [for (var i = 0; i < id.length; i++) false];

for (final part in partsToHighlight) {
for (final match in part.allMatches(id)) {
for (final match in part.allMatches(id.toLowerCase())) {
for (var i = match.start; i < match.end; i++) {
highlights[i] = true;
}

0 comments on commit 7908629

Please sign in to comment.