Permalink
Browse files

crlfx

  • Loading branch information...
1 parent e528eb1 commit f346a1b7b2cf69b3073ac895291601ba9cd0c0df @douglascrockford committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jslint.js
View
@@ -924,8 +924,8 @@ var JSLINT = (function () {
// unsafe comment or string
ax = /@cc|<\/?|script|\]\s*\]|<\s*!|&lt/i,
-// linefeed, carriage return, or carriage return linefeed
- crlfx = /\n|\r\n?/,
+// carriage return, carriage return linefeed, or linefeed
+ crlfx = /\r\n?|\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

0 comments on commit f346a1b

Please sign in to comment.