Trim the user's string when preset searching

(closes #6383)
This commit is contained in:
Bryan Housel
2019-05-19 21:37:09 -04:00
parent d68c49e66d
commit b09b43f6d3

View File

@@ -44,7 +44,7 @@ export function presetCollection(collection) {
search: function(value, geometry, countryCode) {
if (!value) return this;
value = value.toLowerCase();
value = value.toLowerCase().trim();
// match at name beginning or just after a space (e.g. "office" -> match "Law Office")
function leading(a) {