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:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user