summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-02-28 13:52:18 +0100
committerGéry Debongnie <ged@odoo.com>2017-02-28 15:01:24 +0100
commit678ea26f993921bc86385a37f15445f69fe95a76 (patch)
tree559c86dadae778c45077fc99a49620c74db1631a /addons/web/static/src/xml
parente8ae724b6cfcc233ec8ea6ebca5224e4810cb375 (diff)
[FIX] web: fix fuzzy search algorithm in app switcher
The fuzzy search score algorithm is quite simple, but had an interesting problem: for the search string 'AB DEF', the result 'XXAXXBXXXXXXX DEF' had a higher score than the result 'ABX X DEF", because it has 4 consecutive matching characters. This commit slightly tweak the algorithm to take space into account, but to make sure they are not used to compound the score for a string. This means that space characters are not ignored, but are not really as important as a normal character.
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions