This commit is contained in:
Mosiur
2026-04-24 21:03:01 +06:00
parent ad313f3b21
commit c295362495
2709 changed files with 877549 additions and 162 deletions

14
server/node_modules/strip-bom/index.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = x => {
if (typeof x !== 'string') {
throw new TypeError('Expected a string, got ' + typeof x);
}
// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
// conversion translates it to FEFF (UTF-16 BOM)
if (x.charCodeAt(0) === 0xFEFF) {
return x.slice(1);
}
return x;
};