Skip to content
Snippets Groups Projects
Commit 63d02738 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2084401 by Tharna: Fixed Themes can't contain numbers in name.

parent ed11cb2b
No related branches found
No related tags found
No related merge requests found
......@@ -166,8 +166,8 @@ public function isValid() {
)));
}
// Check for illegal characters in breakpoint source.
if (preg_match('/[^a-z_]+/', $this->source)) {
throw new InvalidBreakpointSourceException(format_string("Invalid value '@source' for breakpoint source property. Breakpoint source property can only contain lowercase letters and underscores.", array('@source' => $this->source)));
if (preg_match('/[^0-9a-z_]+/', $this->source)) {
throw new InvalidBreakpointSourceException(format_string("Invalid value '@source' for breakpoint source property. Breakpoint source property can only contain lowercase alphanumeric characters and underscores.", array('@source' => $this->source)));
}
// Check for illegal characters in breakpoint names.
if (preg_match('/[^0-9a-z_\-]/', $this->name)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment