Skip to content

Commit

Permalink
Update regex to handle 404 template slug (#37579)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Dec 23, 2021
1 parent c8f6ac3 commit 1b571a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public function get_item_schema() {
'context' => array( 'embed', 'view', 'edit' ),
'required' => true,
'minLength' => 1,
'pattern' => '[a-zA-Z_\-]+',
'pattern' => '[a-zA-Z0-9_\-]+',
),
'theme' => array(
'description' => __( 'Theme identifier for the template.', 'gutenberg' ),
Expand Down

0 comments on commit 1b571a9

Please sign in to comment.