Skip to content

Commit

Permalink
Merge pull request #156 from ckeditor/bump-fix
Browse files Browse the repository at this point in the history
Fix bump script
  • Loading branch information
jacekbogdanski authored Aug 25, 2023
2 parents d53f24f + 289138a commit fe5d381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bump.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global process, require, __dirname */
/* global console, process, require, __dirname */

const fs = require( 'fs' );
const path = require( 'path' );
Expand All @@ -21,7 +21,7 @@ updateCdnLink( path.resolve( __dirname, '..', 'karma.conf.js' ) );

function updateCdnLink( path ) {
const file = fs.readFileSync( path, 'utf8' );
const cdnLinkRegex = /https:\/\/cdn\.ckeditor\.com\/\d\.\d+\.\d+/g;
const cdnLinkRegex = /https:\/\/cdn\.ckeditor\.com\/\d\.\d+\.\d+(?:-lts)?/g;

fs.writeFileSync( path,
file.replace( cdnLinkRegex, `https://cdn.ckeditor.com/${ cdnVersion }` ), 'utf8' );
Expand Down

0 comments on commit fe5d381

Please sign in to comment.