fix: #3629880 Strip the Drupal build suffix from the core CKEditor version before the CDN mapping

Issue: https://www.drupal.org/project/ckeditor5_premium_features/issues/3629880

Drupal core 11.4.9 reports the ckeditor5 library as 47.6.3-drupal.1, so getDllVersion() builds CDN URLs that 404. This strips a trailing -drupal.N before the mapping lookup, so it resolves to 47.7.4 again.

Verified with a PHP 8.5 run of the getDllVersion() body: 47.6.3 and 47.6.3-drupal.1 give 47.7.4, while 47.7.4 and 48.0.0 are unchanged. The project has no tests for this class.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Wojciech Kukowski

Merge request reports

Loading
Loading