소스 검색

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 ) );