Skip to content

Commit 431f8c0

Browse files
authored
Analyze LUA file lines with \n not EOL (#467)
1 parent 8489685 commit 431f8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class Connection extends EventEmitter {
102102
const file = files[i];
103103
const { name } = path.parse(file);
104104
const contents = fs.readFileSync(path.join(luaDir, file)).toString();
105-
const lines = contents.split(os.EOL);
105+
const lines = contents.split("\n"); // see https://github.com/actionhero/node-resque/issues/465 for why we split only on *nix line breaks
106106
const encodedMetadata = lines[0].replace(/^-- /, "");
107107
const metadata = JSON.parse(encodedMetadata);
108108

0 commit comments

Comments
 (0)