Skip to content

Commit

Permalink
Add comment and ignore rule on regular expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Feb 25, 2019
1 parent 3f1b965 commit ebf1379
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/line-ending-selector/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import StatusBarItem from './status-bar-item'
import helpers from './helpers'

const LineEndingRegExp = /\r\n|\n/g

// the following regular expression is executed natively via the `substring` package,
// where `\A` corresponds to the beginning of the string.
// More info: https://github.com/atom/line-ending-selector/pull/56
// eslint-disable-next-line no-useless-escape
const LFRegExp = /(\A|[^\r])\n/g
const CRLFRegExp = /\r\n/g

Expand Down

0 comments on commit ebf1379

Please sign in to comment.