Make node path match in build.js and build/minify.js case-insensitive. [closes #310]

Former-commit-id: 38c00a319ec069efa56b5f22153f98cda09c857e
This commit is contained in:
John-David Dalton
2013-07-02 22:06:37 -07:00
parent 4c0e3c4db9
commit c43ff29f5d
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
var multilineComment = '(?:\\n */\\*[^*]*\\*+(?:[^/][^*]*\\*+)*/)?\\n';
/** Used to detect the Node.js executable in command-line arguments */
var reNode = RegExp('(?:^|' + path.sepEscaped + ')node(?:\\.exe)?$');
var reNode = RegExp('(?:^|' + path.sepEscaped + ')node(?:\\.exe)?$', 'i');
/** Shortcut to the `stdout` object */
var stdout = process.stdout;

View File

@@ -43,7 +43,7 @@
var mediaType = 'application/vnd.github.v3.raw';
/** Used to detect the Node.js executable in command-line arguments */
var reNode = RegExp('(?:^|' + path.sepEscaped + ')node(?:\\.exe)?$');
var reNode = RegExp('(?:^|' + path.sepEscaped + ')node(?:\\.exe)?$', 'i');
/** Used to reference parts of the blob href */
var location = (function() {