Permalink
Browse files

option.white

  • Loading branch information...
1 parent f819cf3 commit 11c26433c3ac68f08b9ae51e6166c50b7789e7b9 Douglas Crockford committed Dec 18, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 jslint.js
View
@@ -1,5 +1,5 @@
// jslint.js
-// 2012-12-14
+// 2012-12-17
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -1197,7 +1197,11 @@ var JSLINT = (function () {
line += 1;
at = source_row.search(/\t/);
if (at >= 0) {
- warn_at('use_spaces', line, at + 1);
+ if (option.white) {
+ source_row = source_row.replace(/\t/g, ' ');
+ } else {
+ warn_at('use_spaces', line, at + 1);
+ }
}
at = source_row.search(cx);
if (at >= 0) {
@@ -6448,7 +6452,7 @@ klass: do {
itself.jslint = itself;
- itself.edition = '2012-12-14';
+ itself.edition = '2012-12-17';
return itself;
}());

0 comments on commit 11c2643

Please sign in to comment.