Merge pull request #32 from rqbazan/fix-shift-jis-mime-name
fix: change Shift-JIS MIME to Shift_JIS
This commit is contained in:
commit
6de3bc47d3
|
@ -61,7 +61,7 @@ chardet
|
|||
- ISO-2022-JP
|
||||
- ISO-2022-KR
|
||||
- ISO-2022-CN
|
||||
- Shift-JIS
|
||||
- Shift_JIS
|
||||
- Big5
|
||||
- EUC-JP
|
||||
- EUC-KR
|
||||
|
|
|
@ -3,8 +3,8 @@ import * as chardet from '..';
|
|||
describe('Multibyte Character Sets', () => {
|
||||
var base = __dirname + '/../test/data/encodings';
|
||||
|
||||
it('should return SHIFT-JIS', () => {
|
||||
expect(chardet.detectFileSync(base + '/shiftjis')).toBe('Shift-JIS');
|
||||
it('should return Shift_JIS', () => {
|
||||
expect(chardet.detectFileSync(base + '/shiftjis')).toBe('Shift_JIS');
|
||||
});
|
||||
|
||||
it('should return GB18030', () => {
|
||||
|
|
|
@ -201,11 +201,11 @@ class mbcs implements Recogniser {
|
|||
}
|
||||
|
||||
/**
|
||||
* Shift-JIS charset recognizer.
|
||||
* Shift_JIS charset recognizer.
|
||||
*/
|
||||
export class sjis extends mbcs {
|
||||
name() {
|
||||
return 'Shift-JIS';
|
||||
return 'Shift_JIS';
|
||||
}
|
||||
language() {
|
||||
return 'ja';
|
||||
|
|
Loading…
Reference in New Issue