mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-08 23:53:24 +00:00
[FIX] Issue #13 + Dépendances d'app.js
This commit is contained in:
@@ -24,6 +24,8 @@ define("collections/sounds", function(require) {
|
||||
|
||||
pattern = new RegExp(this.removeDiacritics(search), "gi");
|
||||
return new Sounds(this.filter(function(data) {
|
||||
pattern.lastIndex = 0;
|
||||
|
||||
return pattern.test(that.removeDiacritics(data.get("title")))
|
||||
|| pattern.test(that.removeDiacritics(data.get("character")));
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user