mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
15
backend/apis/nodejs/node_modules/strip-bom/index.js
generated
vendored
Normal file
15
backend/apis/nodejs/node_modules/strip-bom/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = string => {
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError(`Expected a string, got ${typeof string}`);
|
||||
}
|
||||
|
||||
// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
|
||||
// conversion translates it to FEFF (UTF-16 BOM)
|
||||
if (string.charCodeAt(0) === 0xFEFF) {
|
||||
return string.slice(1);
|
||||
}
|
||||
|
||||
return string;
|
||||
};
|
Reference in New Issue
Block a user