mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
disabled interpolations in normal regexes
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
compile = function(source, topLevel) {
|
||||
return path.exists(source, function(exists) {
|
||||
if (!(exists)) {
|
||||
throw new Error("File not found: " + (source));
|
||||
throw new Error("File not found: " + source);
|
||||
}
|
||||
return fs.stat(source, function(err, stats) {
|
||||
if (stats.isDirectory()) {
|
||||
@@ -168,11 +168,11 @@
|
||||
js = ' ';
|
||||
}
|
||||
return fs.writeFile(jsPath, js, function(err) {
|
||||
return opts.compile && opts.watch ? puts("Compiled " + (source)) : undefined;
|
||||
return opts.compile && opts.watch ? puts("Compiled " + source) : undefined;
|
||||
});
|
||||
};
|
||||
return path.exists(dir, function(exists) {
|
||||
return exists ? compile() : exec("mkdir -p " + (dir), compile);
|
||||
return exists ? compile() : exec("mkdir -p " + dir, compile);
|
||||
});
|
||||
};
|
||||
lint = function(js) {
|
||||
@@ -195,7 +195,7 @@
|
||||
token = tokens[_i];
|
||||
_result.push((function() {
|
||||
_ref2 = [token[0], token[1].toString().replace(/\n/, '\\n')], tag = _ref2[0], value = _ref2[1];
|
||||
return "[" + (tag) + " " + (value) + "]";
|
||||
return "[" + tag + " " + value + "]";
|
||||
})());
|
||||
}
|
||||
return _result;
|
||||
|
||||
Reference in New Issue
Block a user