Add comment and ignore rule on regular expression.

This commit is contained in:
Rafael Oleza
2019-02-21 15:23:07 +01:00
parent 3f1b965343
commit ebf137954c

View File

@@ -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