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() {