Skip to content

Commit

Permalink
🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
kobezzza committed Aug 9, 2016
1 parent 04f9901 commit 611b3fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* eslint-disable eqeqeq */

/*!
* Monic
* https://github.com/MonicBuilder/Monic
Expand Down Expand Up @@ -58,7 +60,7 @@ gulp.task('copyright', (cb) => {
gulp.src('./LICENSE')
.pipe(replace(/(Copyright \(c\) )(\d+)-?(\d*)/, (sstr, intro, from, to) => {
const year = new Date().getFullYear();
return intro + from + (to || from !== year ? `-${year}` : '');
return intro + from + (to || from != year ? `-${year}` : '');
}))

.pipe(gulp.dest('./'))
Expand Down

0 comments on commit 611b3fc

Please sign in to comment.