Skip to content

Commit

Permalink
Use ignore case setting while highlighting results
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmohit committed Sep 10, 2015
1 parent 71e2150 commit 061d873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/assets/js/hound.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ var SearchBar = React.createClass({
this.props.onSearchRequested(this.getParams());
},
getRegExp : function() {
return new RegExp(this.refs.q.getDOMNode().value.trim(), "ig");
return new RegExp(this.refs.q.getDOMNode().value.trim(), (this.refs.icase.getDOMNode().checked ? "i" : "") + "g");
},
getParams: function() {
return {
Expand Down

0 comments on commit 061d873

Please sign in to comment.