mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 13:41:40 +00:00
update
This commit is contained in:
15
node_modules/strip-bom-string/index.js
generated
vendored
Normal file
15
node_modules/strip-bom-string/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/*!
|
||||
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
||||
*
|
||||
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function(str) {
|
||||
if (typeof str === 'string' && str.charAt(0) === '\ufeff') {
|
||||
return str.slice(1);
|
||||
}
|
||||
return str;
|
||||
};
|
Reference in New Issue
Block a user