Commit 5f635055 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Ignore any keys not including sol: in keys()

parent d521af5f
......@@ -19,7 +19,11 @@ function Storage () {
}
this.keys = function () {
return safeKeys().filter(function (item) { return item.replace(/^\.sol:/, '') })
return safeKeys()
// filter any names not including sol:
.filter(function (item) { return item.indexOf('sol:', 0) === 0 })
// remove sol: from filename
.map(function (item) { return item.replace(/^sol:/, '') })
}
this.remove = function (name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment