()
| 7184 | : new Buffer(input, encoding); |
| 7185 | } |
| 7186 | function isFileSystemCaseSensitive() { |
| 7187 | // win32\win64 are case insensitive platforms |
| 7188 | if (platform === "win32" || platform === "win64") { |
| 7189 | return false; |
| 7190 | } |
| 7191 | // If this file exists under a different case, we must be case-insensitve. |
| 7192 | return !fileExists(swapCase(__filename)); |
| 7193 | } |
| 7194 | /** Convert all lowercase chars to uppercase, and vice-versa */ |
| 7195 | function swapCase(s) { |
| 7196 | return s.replace(/\w/g, function (ch) { |
no test coverage detected