Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 30576572 authored by James Lemieux's avatar James Lemieux
Browse files

Remove special characters from comparison when searching cities

Bug: 26346964

All of ' ', '-', '.' and ''' are now removed to make prefix matching more
liberal and the job of locating the correct city easier. For example,
"St. Lucia" is now matched by any of these search terms:

- StLucia
- St Lucia
- St.Lucia
- St. Lucia

I experimented with contains() logic, but it doesn't feel right and breaks
user expectation in many ways, so startsWith() was left in place.

Change-Id: I0b92bbdef677c7309cc551eefbcee8c5e7376263
parent c624a3fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment