Skip to content

Commit 2b67364

Browse files
committed
test: cover all UTF-8 fast-path aliases
1 parent 5df0d14 commit 2b67364

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/fs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3199,7 +3199,9 @@ function isUtf8Encoding(encoding) {
31993199
return encoding === 'utf8' ||
32003200
encoding === 'utf-8' ||
32013201
encoding === 'UTF8' ||
3202-
encoding === 'UTF-8';
3202+
encoding === 'UTF-8' ||
3203+
encoding === 'Utf8' ||
3204+
encoding === 'Utf-8';
32033205
}
32043206

32053207
function encodeRealpathResult(result, options) {

0 commit comments

Comments
 (0)