diff --git a/lib/fileprocessor.js b/lib/fileprocessor.js index a4fd3f1..1b61c71 100644 --- a/lib/fileprocessor.js +++ b/lib/fileprocessor.js @@ -195,6 +195,10 @@ FileProcessor.prototype.replaceWithRevved = function replaceWithRevved(lines, as debug('Found file \'%s\'', file); + if (src === '/') { + return match; + } + var res = match.replace(src, filterOut(file)); if (srcFile !== file) { self.log(match + ' changed to ' + res);