Completed
Push — master ( 492b47...187862 )
by
unknown
02:47
created
includes/events/event-builder.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -996,23 +996,23 @@
 block discarded – undo
996 996
 		$tagregexp = implode( '|', array_values( $this->tags ) );
997 997
 
998 998
 		return '/' . '\\['                              // Opening bracket
999
-		       . '(\\[?)'                           // 1: Optional second opening bracket for escaping tags: [[tag]]
1000
-		       . "($tagregexp)"                     // 2: Tag name
1001
-		       . '(?![\\w-])'                       // Not followed by word character or hyphen
1002
-		       . '('                                // 3: Unroll the loop: Inside the opening tag
1003
-		       . '[^\\]\\/]*'                   // Not a closing bracket or forward slash
1004
-		       . '(?:' . '\\/(?!\\])'               // A forward slash not followed by a closing bracket
1005
-		       . '[^\\]\\/]*'               // Not a closing bracket or forward slash
1006
-		       . ')*?' . ')' . '(?:' . '(\\/)'                        // 4: Self closing tag ...
1007
-		       . '\\]'                          // ... and closing bracket
1008
-		       . '|' . '\\]'                          // Closing bracket
1009
-		       . '(?:' . '('                        // 5: Unroll the loop: Optionally, anything between the opening and closing tags
1010
-		       . '[^\\[]*+'             // Not an opening bracket
1011
-		       . '(?:' . '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing tag
1012
-		       . '[^\\[]*+'         // Not an opening bracket
1013
-		       . ')*+' . ')' . '\\[\\/\\2\\]'             // Closing tag
1014
-		       . ')?' . ')' . '(\\]?)'                           // 6: Optional second closing bracket for escaping tags: [[tag]]
1015
-		       . '/s';
999
+			   . '(\\[?)'                           // 1: Optional second opening bracket for escaping tags: [[tag]]
1000
+			   . "($tagregexp)"                     // 2: Tag name
1001
+			   . '(?![\\w-])'                       // Not followed by word character or hyphen
1002
+			   . '('                                // 3: Unroll the loop: Inside the opening tag
1003
+			   . '[^\\]\\/]*'                   // Not a closing bracket or forward slash
1004
+			   . '(?:' . '\\/(?!\\])'               // A forward slash not followed by a closing bracket
1005
+			   . '[^\\]\\/]*'               // Not a closing bracket or forward slash
1006
+			   . ')*?' . ')' . '(?:' . '(\\/)'                        // 4: Self closing tag ...
1007
+			   . '\\]'                          // ... and closing bracket
1008
+			   . '|' . '\\]'                          // Closing bracket
1009
+			   . '(?:' . '('                        // 5: Unroll the loop: Optionally, anything between the opening and closing tags
1010
+			   . '[^\\[]*+'             // Not an opening bracket
1011
+			   . '(?:' . '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing tag
1012
+			   . '[^\\[]*+'         // Not an opening bracket
1013
+			   . ')*+' . ')' . '\\[\\/\\2\\]'             // Closing tag
1014
+			   . ')?' . ')' . '(\\]?)'                           // 6: Optional second closing bracket for escaping tags: [[tag]]
1015
+			   . '/s';
1016 1016
 	}
1017 1017
 
1018 1018
 	//allow other plugins to register own event tags
Please login to merge, or discard this patch.