fix: anchor Divi name/id patterns at string end, number-advanced stays unknown, doc wording
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ use stdClass;
|
||||
final class Block extends Container
|
||||
{
|
||||
/** A valid block name: "namespace/block-name" (WordPress' own block name convention). */
|
||||
private const NAME_PATTERN = '/^[a-z][a-z0-9_-]*\/[a-z][a-z0-9_-]*$/';
|
||||
private const NAME_PATTERN = '/^[a-z][a-z0-9_-]*\/[a-z][a-z0-9_-]*$/D';
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $attrs
|
||||
|
||||
Reference in New Issue
Block a user