refactor: extension case insensitivity
This commit is contained in:
parent
d2c2f8b38a
commit
56964c90bc
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -36,7 +36,7 @@ if (args.length < 3) {
|
|||
function isTabFile(fileName) {
|
||||
if (!!fileName && fileName !== '') {
|
||||
const extension = fileName.split('.')[1];
|
||||
return extension === 'tab';
|
||||
return (extension && extension.toLowerCase()) === 'tab';
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue