diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2017-01-30 16:17:46 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2017-01-30 16:17:56 +0100 |
commit | 7e0ba8022fe7c90f84b292cc163a1dfda0743e07 (patch) | |
tree | e6032446e8938916b58bc56301cd886308aa6363 /server/sonar-web/src/main | |
parent | 6f5b13b403186e86c051827a945ab2aaa1592bae (diff) | |
download | sonarqube-7e0ba8022fe7c90f84b292cc163a1dfda0743e07.tar.gz sonarqube-7e0ba8022fe7c90f84b292cc163a1dfda0743e07.zip |
improve search on update center page
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/update-center/plugin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/update-center/plugin.js b/server/sonar-web/src/main/js/apps/update-center/plugin.js index 5ff6557ba34..41a2d9ff6ea 100644 --- a/server/sonar-web/src/main/js/apps/update-center/plugin.js +++ b/server/sonar-web/src/main/js/apps/update-center/plugin.js @@ -29,7 +29,7 @@ export default Backbone.Model.extend({ _matchAttribute (attr, query) { const value = this.get(attr) || ''; - return value.search(new RegExp(query, 'i')) !== -1; + return value.toLowerCase().includes(query.toLowerCase()); }, match (query) { |