Skip to content

Commit

Permalink
Remove an IE workaround, hoping that Microsoft will fix it.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Feb 21, 2012
1 parent 7842ba3 commit 4482274
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions jslint.js
@@ -1,5 +1,5 @@
// jslint.js
// 2012-02-17
// 2012-02-19

// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)

Expand Down Expand Up @@ -924,9 +924,8 @@ var JSLINT = (function () {

// unsafe comment or string
ax = /@cc|<\/?|script|\]\s*\]|<\s*!|&lt/i,
// carriage return, or carriage return linefeed
crx = /\r/g,
crlfx = /\r\n/g,
// linefeed, carriage return, or carriage return linefeed
crlfx = /\n|\r\n?/,
// unsafe characters that are silently deleted by one or more browsers
cx = /[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,
// query characters for ids
Expand Down Expand Up @@ -1684,10 +1683,7 @@ klass: do {
return {
init: function (source) {
if (typeof source === 'string') {
lines = source
.replace(crlfx, '\n')
.replace(crx, '\n')
.split('\n');
lines = source.split(crlfx);
} else {
lines = source;
}
Expand Down Expand Up @@ -6389,7 +6385,7 @@ klass: do {
};
itself.jslint = itself;

itself.edition = '2012-02-17';
itself.edition = '2012-02-19';

return itself;
}());

0 comments on commit 4482274

Please sign in to comment.