Skip to content

Commit

Permalink
Merge pull request #50 from ArturDorochowicz/master
Browse files Browse the repository at this point in the history
Allow for Unicode Byte Order Mark in analyzed files
  • Loading branch information
brentlintner committed Oct 27, 2011
2 parents 00937ea + b36ac70 commit b3fd586
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hint.js
Expand Up @@ -18,6 +18,9 @@ function _lint(file, results, config, data) {
process.stdout.write(e + '\n');
}

// Remove potential Unicode Byte Order Mark.
buffer = buffer.replace(/^\uFEFF/, '');

if (!jshint.JSHINT(buffer, config)) {
jshint.JSHINT.errors.forEach(function (error) {
if (error) {
Expand Down

0 comments on commit b3fd586

Please sign in to comment.