Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules/
tmp
temp/
*.tgz
*.tgz
.idea
*.iml
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function FileStore(options) {
var cacheFiles = Fs.readdirSync(self.tmpDir);
self.cache = {};
cacheFiles.forEach(function(file) {
file = file.replace('.json', '');
file = file.replace(/\.json$/, '');
self.cache[file] = true;
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cacheman-file",
"version": "0.2.1",
"version": "0.2.2",
"description": "File caching library for Node.JS and also cache engine for cacheman",
"author": "Taron Foxworth <taronfoxworth@gmail.com>",
"contributors": [
Expand Down