Skip to content

Commit

Permalink
Merge pull request #291 from moodlehq/numbers-component-names
Browse files Browse the repository at this point in the history
Accept component names containing numbers
  • Loading branch information
stronk7 authored Jan 23, 2024
2 parents e040c82 + f9dac53 commit 61b5da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify_commit_messages/amoslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected static function legacy_component_name($newstyle) {
$newstyle = trim($newstyle);

// See {@link PARAM_COMPONENT}.
if (!preg_match('/^[a-z]+(_[a-z][a-z0-9_]*)?[a-z0-9]+$/', $newstyle)) {
if (!preg_match('/^[a-z][a-z0-9]*(_[a-z][a-z0-9_]*)?[a-z0-9]+$/', $newstyle)) {
return false;
}

Expand Down

0 comments on commit 61b5da7

Please sign in to comment.