diff options
author | Ev Bogue <ev@evbogue.com> | 2019-07-29 12:42:11 -0500 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2019-07-29 12:42:11 -0500 |
commit | 00ded79fa52434fddf007ac94aa0315b51bfee3c (patch) | |
tree | 1c187a8826031d94866a447cc18ace8bf66125a8 /views.js | |
parent | 52561b0bbbdcd41401265ed37c667ff2402f90b7 (diff) |
make search case insensitive
Diffstat (limited to 'views.js')
-rw-r--r-- | views.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -96,14 +96,14 @@ function profilePage (src, keys) { } function searchPage (src, keys) { - var search = src.substring(1).replace("%20"," ") - console.log(search) - scroller.appendChild(composer(keys)) + var search = src.substring(1).replace("%20"," ").toUpperCase() + + //scroller.appendChild(composer(keys)) bog().then(log => { if (log) { log.forEach(function (msg) { if (msg.text) { - if (msg.text.includes(search)) { + if (msg.text.toUpperCase().includes(search)) { scroller.appendChild(render(msg, keys)) } } |