We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0888f42 commit 5cd1908Copy full SHA for 5cd1908
classes/model/custom_element.php
@@ -226,13 +226,13 @@ public function validate(): array {
226
}
227
228
$matches = [];
229
- preg_match('/[a-z]+-[a-z\\-]+/',$this->cename,$matches);
+ preg_match('/[a-z]+-[a-z\\-]+/', $this->cename, $matches);
230
if (empty($matches)) {
231
$errors['cename'] = get_string('ce_form_error_cename_lettershyphens', 'local_ce');
232
233
234
235
- preg_match('/[A-Z]+/',$this->cename,$matches);
+ preg_match('/[A-Z]+/', $this->cename, $matches);
236
if (!empty($matches)) {
237
$errors['cename'] = get_string('ce_form_error_cename_nouppercase', 'local_ce');
238
0 commit comments