Fix Code Style Guidelines code parsing.
authorjond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 04:10:26 +0000 (04:10 +0000)
committerjond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 04:10:26 +0000 (04:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152024

Reviewed by Timothy Hatcher.

* wp-content/plugins/table-of-contents.php:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@193807 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/webkit.org/ChangeLog
Websites/webkit.org/wp-content/plugins/table-of-contents.php

index ae1d457..fc3d68c 100644 (file)
@@ -1,5 +1,14 @@
 2015-12-08  Jonathan Davis  <jond@apple.com>
 
+        Fix Code Style Guidelines code parsing.
+        https://bugs.webkit.org/show_bug.cgi?id=152024
+
+        Reviewed by Timothy Hatcher.
+
+        * wp-content/plugins/table-of-contents.php:
+
+2015-12-08  Jonathan Davis  <jond@apple.com>
+
         Fix social meta for home page.
         https://bugs.webkit.org/show_bug.cgi?id=151764
 
index 5b79c07..a846ff4 100644 (file)
@@ -92,15 +92,6 @@ class WebKitTableOfContents {
     public static function parse( $content ) {
         $markup = preg_replace_callback('{
                 ^<h([1-6])[^>]*>(.+?)<\/h[1-6]>* # HTML tags
-                |
-                ^(\#{1,6})    # $1 = string of #\'s
-                [ ]*
-                (.+?)        # $2 = Header text
-                [ ]*
-                \#*            # optional closing #\'s (not counted)
-                (?:[ ]+ ' . self::$attr_regex . ' )?     # $3 = id/class attributes
-                [ ]*
-                \n+
             }xm',
             array('WebKitTableOfContents', 'index'),
             $content