Skip to content

Commit

Permalink
Merge pull request #2515 from wahuneke/revert_pr2510
Browse files Browse the repository at this point in the history
re: #2508 - revert #2510 - undo all fixes. issue == WONTFIX
  • Loading branch information
lukeapage committed Mar 20, 2015
2 parents 5c0179d + 328ea62 commit b476f6e
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions bin/lessc
Expand Up @@ -270,25 +270,12 @@ function printUsage() {
return;
}

// If input filenames are surrounded in quotes here, strip the quotes.
// Bug #2508
var filenames = [args[1], args[2]].map(function (arg) {
var match;

match = arg.match(/^'(.+)'$/);
if (match) {
return match[1];
} else {
return arg;
}
});

var input = filenames[0];
var input = args[1];
if (input && input != '-') {
input = path.resolve(process.cwd(), input);
}
var output = filenames[1];
var outputbase = filenames[1];
var output = args[2];
var outputbase = args[2];
if (output) {
output = path.resolve(process.cwd(), output);
}
Expand Down Expand Up @@ -494,4 +481,4 @@ function printUsage() {
parseLessFile(false, buffer);
});
}
})();
})();

0 comments on commit b476f6e

Please sign in to comment.