Skip to content

Commit

Permalink
fix(highlight-matched-substrings): find matched substrings in fixture…
Browse files Browse the repository at this point in the history
…s case insensitive
  • Loading branch information
plumdumpling committed Aug 9, 2023
1 parent 195d6c1 commit 0848408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geosuggest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default class GeoSuggest extends React.Component<Props, State> {
matchedSubstrings: [
{
length: userInput.length,
offset: fixture.label.indexOf(userInput)
offset: fixture.label.search(regex)
}
],
placeId: fixture.placeId || fixture.label
Expand Down

0 comments on commit 0848408

Please sign in to comment.