Skip to content

Commit

Permalink
Merge pull request #235 from TerryMooreII/fix-null-newline-1.x
Browse files Browse the repository at this point in the history
Fix the detect newline showing null in text :: fix-null-newline-1.x
  • Loading branch information
nmccready authored Oct 12, 2016
2 parents 5a35182 + ea2e252 commit dcee23d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ module.exports.write = function write(destPath, options) {
}

var extension = file.relative.split('.').pop();
var newline = detectNewline(file.contents.toString());
var newline = detectNewline.graceful(file.contents.toString());
var commentFormatter;

switch (extension) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-sourcemaps",
"version": "1.7.1",
"version": "1.7.2",
"description": "Source map support for Gulp.js",
"homepage": "http://github.com/floridoo/gulp-sourcemaps",
"repository": "git://github.com/floridoo/gulp-sourcemaps.git",
Expand Down

0 comments on commit dcee23d

Please sign in to comment.