diff --git a/index.js b/index.js index e6348e70..834896c2 100644 --- a/index.js +++ b/index.js @@ -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;