提交 3de68cda 编写于 作者: K katainaka 提交者: katainaka0503

Fixed typo

上级 d8ef7579
......@@ -92,10 +92,10 @@ export function detectEncodingByBOMFromBuffer(buffer: NodeBuffer, bytesRead: num
* If no BOM is detected, null will be passed to callback.
*/
export function detectEncodingByBOM(file: string): TPromise<string> {
return stream.readExactlyByFile(file, 3).then(({buffer, bytesRead}) => detectEncodingByBOMFromBuffer(buffer, bytesRead));
return stream.readExactlyByFile(file, 3).then(({ buffer, bytesRead }) => detectEncodingByBOMFromBuffer(buffer, bytesRead));
}
const IGNORE_ENCODINGS = ['ascii', 'utf-8', 'utf-16', 'urf-32'];
const IGNORE_ENCODINGS = ['ascii', 'utf-8', 'utf-16', 'utf-32'];
/**
* Detects the encoding from buffer.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册