Skip to content

Commit

Permalink
Allowed different dash type in bump year script.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-zan committed Nov 7, 2023
1 parent 373d92a commit 71e0b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-bump-year/lib/bumpyear.js
Expand Up @@ -55,7 +55,7 @@ module.exports = function bumpYear( params ) {

filesToUpdate.forEach( fileName => {
const fileContent = fs.readFileSync( fileName, 'utf-8' );
const yearRegexp = new RegExp( `(?<=Copyright (?:\\(c\\)|©) ${ params.initialYear }-)\\d{4}`, 'g' );
const yearRegexp = new RegExp( `(?<=Copyright (?:\\(c\\)|©) ${ params.initialYear }[-–])\\d{4}`, 'g' );

const updatedFileContent = fileContent.replace( yearRegexp, currentYear );

Expand Down

0 comments on commit 71e0b39

Please sign in to comment.