Correct wrong asset path patch

This commit is contained in:
Ghislain Loaec 2015-08-05 01:20:02 +02:00
parent ca5d5ae74e
commit d6cdd5c7fc
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ var app = {
var rootPath = fileSystem.root.toURL();
// Patch path to local in manifest response
var manifestResponse = response.replace(/(['"\(])\/?(assets\/^['"\)]*)(['"\)])/g, function(match, q1, path, q2){
var manifestResponse = response.replace(/(['"\(])\/?(assets\/[^'"\)]*)(['"\)])/g, function(match, q1, path, q2){
return q1+rootPath+match+q2;
});
@ -218,7 +218,7 @@ var app = {
});
} else {
var manifestResponse = response.replace(/(['"\(])\/?(assets\/^['"\)]*)(['"\)])/g, function(match, q1, path, q2){
var manifestResponse = response.replace(/(['"\(])\/?(assets\/[^'"\)]*)(['"\)])/g, function(match, q1, path, q2){
return q1+rootPath+match+q2;
});
cb(manifestResponse);