Skip to content

Commit a3e0e27

Browse files
committed
Update regex comment with named groups
1 parent 11f51c9 commit a3e0e27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,11 +3850,11 @@ public function set_modifiable_text( string $plaintext_content ): bool {
38503850
if ( $this->is_javascript_script_tag() ) {
38513851
$plaintext_content = preg_replace_callback(
38523852
/*
3853-
* This case-insensitive pattern consists of three groups:
3853+
* This case-insensitive pattern consists of three groups (in order):
38543854
*
3855-
* 1: "<" or "</"
3856-
* 2: "s"
3857-
* 3: "cript" + a trailing character that terminates a tag name.
3855+
* HEAD: "<" or "</"
3856+
* S_CHAR: "s"
3857+
* TAIL: "cript" + a trailing tag name termination character
38583858
*/
38593859
'~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
38603860
static function ( $matches ) {

0 commit comments

Comments
 (0)