Skip to content

Commit

Permalink
remove empty lines before variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed Jul 27, 2017
1 parent 838315c commit 15fdc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/requestController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class RequestController {

// remove file variables definition lines
lines = selectedText.split(/\r?\n/g);
selectedText = ArrayUtility.skipWhile(lines, l => Constants.VariableDefinitionRegex.test(l)).join(EOL);
selectedText = ArrayUtility.skipWhile(lines, l => Constants.VariableDefinitionRegex.test(l) || l.trim() === '').join(EOL);

// variables replacement
selectedText = await VariableProcessor.processRawRequest(selectedText);
Expand Down

0 comments on commit 15fdc9b

Please sign in to comment.