core/.cspell.json | 1 + core/scripts/dev/commit-code-check.sh | 2 +- core/scripts/js/assets.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/.cspell.json b/core/.cspell.json index ca08c426d0..56df9c7202 100644 --- a/core/.cspell.json +++ b/core/.cspell.json @@ -13,6 +13,7 @@ "**/LICENSE.txt", "../**/LICENSE.txt", "modules/**/Migrate*Test.php", + "modules/ckeditor5/js/build/*", "modules/color/preview.html", "modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html", "modules/media/tests/fixtures/oembed/*", diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh index 82cc600597..4aad160467 100755 --- a/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -286,7 +286,7 @@ ############################################################################ ### JAVASCRIPT FILES ############################################################################ - if [[ -f "$TOP_LEVEL/$FILE" ]] && [[ $FILE =~ \.js$ ]] && [[ ! $FILE =~ ^core/tests/Drupal/Nightwatch ]] && [[ ! $FILE =~ ^core/assets/vendor/jquery.ui/ui && ]] && [[ ! $FILE =~ ^core/modules/ckeditor5/js/ckeditor5_plugins ]]; then + if [[ -f "$TOP_LEVEL/$FILE" ]] && [[ $FILE =~ \.js$ ]] && [[ ! $FILE =~ ^core/tests/Drupal/Nightwatch ]] && [[ ! $FILE =~ ^core/assets/vendor/jquery.ui/ui ]] && [[ ! $FILE =~ ^core/modules/ckeditor5/js/ckeditor5_plugins ]]; then # Work out the root name of the JavaScript so we can ensure that the ES6 # version has been compiled correctly. if [[ $FILE =~ \.es6\.js$ ]]; then diff --git a/core/scripts/js/assets.js b/core/scripts/js/assets.js index b14afa26fd..d6b3cf2586 100644 --- a/core/scripts/js/assets.js +++ b/core/scripts/js/assets.js @@ -28,7 +28,7 @@ const assetsFolder = `${coreFolder}/assets/vendor`; const libraryDeclaration = libraries[libraryIndex]; // Get the previous package version. const currentVersion = libraryDeclaration.match(/version: "(.*)"\n/)[1]; - // Replace the version value and the version in the licence URL. + // Replace the version value and the version in the license URL. libraries[libraryIndex] = libraryDeclaration.replace( new RegExp(currentVersion, 'g'), version,