瀏覽代碼

Extended searched string to more specific text.

Maksymilian Barnaś 9 年之前
父節點
當前提交
16e55d8834
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dev/tasks/exec/functions/bump-year.js

+ 2 - 2
dev/tasks/exec/functions/bump-year.js

@@ -20,14 +20,14 @@ module.exports = ( workdir ) => {
 	// Change this to correct year
 	const year = '2017';
 
-	const licenseRegexp = /(@license Copyright \(c\) 2003-)[0-9]{4}/g;
+	const licenseRegexp = /(@license Copyright \(c\) 2003-)[0-9]{4}(, CKSource - Frederico Knabben\.)/g;
 	const glob = path.join( workdir, '**/*' );
 
 	return gulp.src( glob )
 		.pipe( gitignore() )
 		.pipe( replace(
 			licenseRegexp,
-			`$1${ year }`,
+			`$1${ year }$2`,
 			{ skipBinary: true }
 		) )
 		.pipe( gulp.dest( workdir ) );