From c446c4353c1b3e11151c0abb9acb5be503d0354c Mon Sep 17 00:00:00 2001 From: Bastien Date: Thu, 13 Mar 2014 17:13:57 +0100 Subject: [PATCH] Catch correction --- src/sbp/sbp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbp/sbp.php b/src/sbp/sbp.php index 4b272ad..22be770 100644 --- a/src/sbp/sbp.php +++ b/src/sbp/sbp.php @@ -539,9 +539,9 @@ static public function parse($content) '#(? '$1 ($2) {', '#(? 'function ($1) {', '#(? 'function () use', - '#(? '$1 ) use ( $2', + '#(? '$1 ) use ( $2', '#\((\([^\(\)]+\))\)#' => '$1', - '#(catch\s*\([^\)]+\)\s*)([^\s\{])' => '$1{} $2', + '#(catch\s*\([^\)]+\)\s*)([^\s\{])#' => '$1{} $2', ) as $from => $to) { $content = preg_replace($from, $to, $content); }