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 authored and noisysocks committed Jan 4, 2022
1 parent 2dee67d commit a5e0d68
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 a5e0d68

Please sign in to comment.