Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix loading of cached service models

  • Loading branch information...
commit 9fa1bc528f4c2c4ec9c659dfde60a6c7917b9ce1 1 parent 031db29
@lsegal lsegal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  dist-tools/strategies/cache.js
View
2  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] = {};
Please sign in to comment.
Something went wrong with that request. Please try again.