Skip to content

Commit

Permalink
Make parsing line endings kind agnostic (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
larixer authored and jnwng committed Jun 6, 2017
1 parent fdd6876 commit bcff86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const gql = require('./src');
// and `doc` (the parsed GraphQL document) and tacks on
// the imported definitions.
function expandImports(source, doc) {
const lines = source.split(os.EOL);
const lines = source.split(/\r\n|\r|\n/);
let outputCode = `
var names = {};
function unique(defs) {
Expand Down

0 comments on commit bcff86e

Please sign in to comment.