We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bad7ac + 64b7093 commit 65df68eCopy full SHA for 65df68e
lib/cue.ts
@@ -45,10 +45,8 @@ export function parse(filename: string): ICueSheet {
45
cuesheet.encoding = chardet.detect(fs.readFileSync(filename));
46
let encoding = cuesheet.encoding;
47
48
- switch (cuesheet.encoding) {
49
- case 'ISO-8859-1':
50
- encoding = 'binary';
51
- break;
+ if (cuesheet.encoding.startsWith('ISO-8859-')) {
+ encoding = 'binary';
52
}
53
54
const lines = (fs.readFileSync(filename, {encoding, flag: 'r'}) as any)
0 commit comments