Skip to content

Commit

Permalink
feat(rc parsing): Use os.EOL to split rcfile
Browse files Browse the repository at this point in the history
  • Loading branch information
max committed Apr 8, 2016
1 parent af5ff13 commit b265241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { readFileSync } from 'fs';
import { EOL } from 'os';
import trim from 'trim';

export default function (vorpal, rcfile) {
Expand All @@ -8,7 +9,7 @@ export default function (vorpal, rcfile) {

try {
readFileSync(rcfile, 'utf-8')
.split('\n')
.split(EOL)
.filter(cmd => trim(cmd).length)
.forEach(cmd => vorpal.exec(cmd));
}
Expand Down

0 comments on commit b265241

Please sign in to comment.