Skip to content

Commit

Permalink
Fix case sensitivity in search
Browse files Browse the repository at this point in the history
fixes #72
  • Loading branch information
phil294 committed Feb 23, 2024
1 parent 0fa76d9 commit 9b5115d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/views/MainView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default
txt_filter_ref = ref null
txt_filter_filter = (###* @type Commit ### commit) =>
search_for = txt_filter.value.toLowerCase()
for str from [commit.subject, commit.hash_long, commit.author_name, commit.author_email, ...commit.refs.map((r)=>r.id)]
for str from [commit.subject, commit.hash_long, commit.author_name, commit.author_email, ...commit.refs.map((r)=>r.id)].map((s)=>s.toLowerCase())
if txt_filter_regex.value
return true if try str?.match(search_for)
else
Expand Down

0 comments on commit 9b5115d

Please sign in to comment.