From 70e2390579b95bb6c093a30c347afb23c2f93e8a Mon Sep 17 00:00:00 2001 From: "jond@apple.com" Date: Wed, 9 Dec 2015 04:10:26 +0000 Subject: [PATCH] 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: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@193807 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Websites/webkit.org/ChangeLog | 9 +++++++++ Websites/webkit.org/wp-content/plugins/table-of-contents.php | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Websites/webkit.org/ChangeLog b/Websites/webkit.org/ChangeLog index ae1d457..fc3d68c 100644 --- a/Websites/webkit.org/ChangeLog +++ b/Websites/webkit.org/ChangeLog @@ -1,5 +1,14 @@ 2015-12-08 Jonathan Davis + 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 + Fix social meta for home page. https://bugs.webkit.org/show_bug.cgi?id=151764 diff --git a/Websites/webkit.org/wp-content/plugins/table-of-contents.php b/Websites/webkit.org/wp-content/plugins/table-of-contents.php index 5b79c07..a846ff4 100644 --- a/Websites/webkit.org/wp-content/plugins/table-of-contents.php +++ b/Websites/webkit.org/wp-content/plugins/table-of-contents.php @@ -92,15 +92,6 @@ class WebKitTableOfContents { public static function parse( $content ) { $markup = preg_replace_callback('{ ^]*>(.+?)<\/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 -- 1.8.3.1