Skip to content

Commit

Permalink
Correct lineEnding option
Browse files Browse the repository at this point in the history
  • Loading branch information
lmaillet committed Jun 8, 2018
1 parent 25e6d1f commit 4bce465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ i18nTransform = function (_Transform) {_inherits(i18nTransform, _Transform);
if (this.options.lineEnding === 'auto') {
text = _eol2.default.auto(text);
} else
if (lineEnding === '\r\n' || lineEnding === 'crlf') {
if (this.options.lineEnding === '\r\n' || this.options.lineEnding === 'crlf') {
text = _eol2.default.crlf(text);
} else
if (lineEnding === '\r' || lineEnding === 'cr') {
if (this.options.lineEnding === '\r' || this.options.lineEnding === 'cr') {
text = _eol2.default.cr(text);
} else
{
Expand Down
4 changes: 2 additions & 2 deletions src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ export default class i18nTransform extends Transform {
if (this.options.lineEnding === 'auto') {
text = eol.auto(text)
}
else if (lineEnding === '\r\n' || lineEnding === 'crlf') {
else if (this.options.lineEnding === '\r\n' || this.options.lineEnding === 'crlf') {
text = eol.crlf(text)
}
else if (lineEnding === '\r' || lineEnding === 'cr') {
else if (this.options.lineEnding === '\r' || this.options.lineEnding === 'cr') {
text = eol.cr(text)
}
else {
Expand Down

0 comments on commit 4bce465

Please sign in to comment.