From 5c9795958b08c233eb2c4afab8054d55c3a33d98 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 2 Mar 2012 14:52:18 -0800 Subject: Minor logic fixes for URL resolution in CSS --- js/mediators/io-mediator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/mediators') diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 64210a02..0a851a4d 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js @@ -338,7 +338,7 @@ exports.IoMediator = Montage.create(Component, { // regex = new RegExp(fileCouldDirUrl.replace(/\//gi, '\\\/'), 'gi'); // - if (local.split('/').length > 1) { + if (local.split('/').length > 2) { adjCss = adjCss.replace(regex, '../'); } else { adjCss = adjCss.replace(regex, ''); -- cgit v1.2.3