Skip to content

Commit

Permalink
Merge pull request #428 from axonops/minor-fix-for-fss
Browse files Browse the repository at this point in the history
Update in `funcs.js` file for FSS
  • Loading branch information
mhmdkrmabd authored Sep 16, 2024
2 parents 338f1ef + 0d259a2 commit e9b6af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/js/funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ let suggestionSearch = (needle, haystack) => {
* @Return: {boolean} the given needle is in the haystack or not
*/
String.prototype.search = function(needle) {
return this.indexOf(needle).length != 0
return this.indexOf(needle) != -1
}

// Extend the jQuery library capabilities by adding new functions to objects
Expand Down

0 comments on commit e9b6af2

Please sign in to comment.