mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:22:26 +01:00
Use builtin String.startsWith, String.endsWith, and String.contains methods where appropriate.
This commit is contained in:
@@ -348,7 +348,7 @@ var JavaScript = Module("javascript", {
|
||||
else {
|
||||
base.quote = [last, text => util.escapeString(text, ""), last];
|
||||
if (prefix)
|
||||
base.filters.push(item => item.item.indexOf(prefix) === 0);
|
||||
base.filters.push(item => item.item.startsWith(prefix));
|
||||
}
|
||||
|
||||
if (!compl) {
|
||||
|
||||
Reference in New Issue
Block a user