Permalink
Browse files

Fix loading of cached service models

  • Loading branch information...
1 parent 031db29 commit 9fa1bc528f4c2c4ec9c659dfde60a6c7917b9ce1 Loren Segal committed Jul 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 dist-tools/strategies/cache.js
@@ -14,7 +14,7 @@ function CacheStrategy(builder) {
CacheStrategy.prototype.loadServices = function() {
this.services = {};
fs.readdirSync(this.cacheRoot).forEach(function(file) {
- var match = file.match(/^([^_-]+)-(latest|\d+-\d+-\d+)\.(?:min\.)?js$/);
+ var match = file.match(/^([^_]+?)-(latest|\d+-\d+-\d+)\.(?:min\.)?js$/);
if (match) {
var service = match[1], version = match[2];
if (!this.services[service]) this.services[service] = {};

0 comments on commit 9fa1bc5

Please sign in to comment.