fixed method 'check' error 'format' of undefined (#1424)

* fixed method 'check' error 'format' of undefined

* Added normalizeOptions
master
lamo2k123 2017-04-26 21:02:53 +03:00 committed by Christopher Chedeau
parent 9c826c2ed5
commit 4b3835925e
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ module.exports = {
},
check: function(text, opts) {
try {
const formatted = this.format(text, opts);
const formatted = formatWithShebang(text, normalizeOptions(opts));
return formatted === text;
} catch (e) {
return false;