We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8489685 commit 431f8c0Copy full SHA for 431f8c0
src/core/connection.ts
@@ -102,7 +102,7 @@ export class Connection extends EventEmitter {
102
const file = files[i];
103
const { name } = path.parse(file);
104
const contents = fs.readFileSync(path.join(luaDir, file)).toString();
105
- const lines = contents.split(os.EOL);
+ const lines = contents.split("\n"); // see https://github.com/actionhero/node-resque/issues/465 for why we split only on *nix line breaks
106
const encodedMetadata = lines[0].replace(/^-- /, "");
107
const metadata = JSON.parse(encodedMetadata);
108
0 commit comments