From c43ff29f5d982e3ef13dfb603564c11d02968ddc Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 2 Jul 2013 22:06:37 -0700 Subject: [PATCH] Make node path match in build.js and build/minify.js case-insensitive. [closes #310] Former-commit-id: 38c00a319ec069efa56b5f22153f98cda09c857e --- build.js | 2 +- build/minify.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 780bbe27d..f0bc7bd2a 100755 --- a/build.js +++ b/build.js @@ -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; diff --git a/build/minify.js b/build/minify.js index 64cf27e60..81e198163 100755 --- a/build/minify.js +++ b/build/minify.js @@ -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() {