1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 23:15:46 +01:00

Match only complete words in :lk filters. Should we maybe support regexps instead?

This commit is contained in:
Kris Maglione
2011-01-03 15:22:34 -05:00
parent 5aa7450973
commit f41e245cb1
3 changed files with 20 additions and 5 deletions

View File

@@ -273,7 +273,15 @@ function prototype(obj)
function properties(obj, prototypes, debugger_) {
let orig = obj;
let seen = {};
let seen = { dactylPropertyNames: true };
try {
if ("dactylpropertynames" in obj && !prototypes)
for (let key in values(dactylpropertynames))
if (key in obj && !set.add(seen, key))
yield key;
}
catch (e) {}
for (; obj; obj = prototypes && prototype(obj)) {
try {