You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
321 B
15 lines
321 B
/*! |
|
* 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; |
|
};
|
|
|