1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-17 06:13:33 +02:00

Remove ^Ms from sourced files

This commit is contained in:
Kris Maglione
2008-12-19 18:22:25 -05:00
parent 491751bb62
commit 196f3ec686

View File

@@ -868,6 +868,8 @@ lookup:
{ {
ioManager.sourcing.line = i + 1; ioManager.sourcing.line = i + 1;
// skip line comments and blank lines // skip line comments and blank lines
line = line.replace(/\r$/, "");
if (/^\s*(".*)?$/.test(line)) if (/^\s*(".*)?$/.test(line))
continue; continue;
@@ -899,7 +901,7 @@ lookup:
if (matches) if (matches)
{ {
args = matches[1]; args = matches[1];
heredocEnd = new RegExp("^" + matches[2] + "$", "m"); heredocEnd = RegExp("^" + matches[2] + "$", "m");
if (matches[1]) if (matches[1])
heredoc = matches[1] + "\n"; heredoc = matches[1] + "\n";
} }