8
0
Эх сурвалжийг харах

Extended searched string to more specific text.

Maksymilian Barnaś 9 жил өмнө
parent
commit
16e55d8834

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