1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 18:32:36 +01:00

Fix some CPOW issues. Everything is still terrible, though.

This commit is contained in:
Kris Maglione
2015-12-19 23:02:57 -08:00
parent bc9eb79fb3
commit 65725c9516
22 changed files with 195 additions and 89 deletions

View File

@@ -620,7 +620,7 @@ var CompletionContext = Class("CompletionContext", {
var substrings = [text];
}
else {
var compare = function compare(text, s) { return text.contains(s); };
var compare = function compare(text, s) { return text.includes(s); };
var substrings = [];
let start = 0;
let idx;
@@ -1169,7 +1169,7 @@ var Completion = Module("completion", {
if (context.ignoreCase) {
compare = util.compareIgnoreCase;
contains = function contains_(a, b) {
return a && a.toLowerCase().contains(b.toLowerCase());
return a && a.toLowerCase().includes(b.toLowerCase());
};
}