mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-31 21:33:31 +02:00
Use builtin String.startsWith, String.endsWith, and String.contains methods where appropriate.
This commit is contained in:
@@ -212,7 +212,7 @@ var Hive = Class("Hive", {
|
||||
name = null;
|
||||
}
|
||||
|
||||
if (filter && filter.indexOf(",") > -1)
|
||||
if (filter && filter.contains(","))
|
||||
return filter.split(",").reduce(
|
||||
(n, f) => n + this.removeSheet(name, f, index), 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user