From 196f3ec6867fb7173a32c3880fc26e3e81f750e3 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 19 Dec 2008 18:22:25 -0500 Subject: [PATCH] Remove ^Ms from sourced files --- common/content/io.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/content/io.js b/common/content/io.js index c4354850..28b2d97f 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -868,6 +868,8 @@ lookup: { ioManager.sourcing.line = i + 1; // skip line comments and blank lines + line = line.replace(/\r$/, ""); + if (/^\s*(".*)?$/.test(line)) continue; @@ -899,7 +901,7 @@ lookup: if (matches) { args = matches[1]; - heredocEnd = new RegExp("^" + matches[2] + "$", "m"); + heredocEnd = RegExp("^" + matches[2] + "$", "m"); if (matches[1]) heredoc = matches[1] + "\n"; }