mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-27 17:43:29 +02:00
Use builtin String.startsWith, String.endsWith, and String.contains methods where appropriate.
This commit is contained in:
@@ -267,7 +267,7 @@ var Abbreviations = Module("abbreviations", {
|
||||
let hives = (hives || this.userHives).filter(h => !h.empty);
|
||||
|
||||
function abbrevs(hive)
|
||||
hive.merged.filter(ab => (ab.inModes(modes) && ab.lhs.indexOf(lhs) == 0));
|
||||
hive.merged.filter(ab => (ab.inModes(modes) && ab.lhs.startsWith(lhs)));
|
||||
|
||||
let list = ["table", {},
|
||||
["tr", { highlight: "Title" },
|
||||
|
||||
Reference in New Issue
Block a user