fix: change Shift-JIS mime name to Shift_JIS
This commit is contained in:
parent
79457df59b
commit
d00c8cdd0d
|
@ -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