Skip to content

Commit

Permalink
Merge pull request #97 from mxschmitt/patch-1
Browse files Browse the repository at this point in the history
Added file path space trimming
  • Loading branch information
aeschli authored Mar 2, 2018
2 parents 694753d + ebbbbcb commit 24a7063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/app/grammarConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ function convertGrammar(location, extensionConfig) {
} else {
// load from disk
var body = null;
// trim the spaces of the location path
location = location.trim()
try {
body = fs.readFileSync(location);
} catch (error) {
Expand Down Expand Up @@ -107,4 +109,4 @@ function processContent(extensionConfig, fileName, body) {
extensionConfig.languageContent = body;
};

exports.convertGrammar = convertGrammar;
exports.convertGrammar = convertGrammar;

0 comments on commit 24a7063

Please sign in to comment.