From a4172ecba8b564bb344791f88f38bc74591307d1 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 10 May 2007 01:07:10 +0000 Subject: [PATCH] Make ugly regex slightly less ugly. You don't have to use / for the delimiter. --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 578cd09db8..f293a89ad0 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -842,7 +842,7 @@ class Linker { */ private function formatAutocomments( $comment, $title = NULL, $local = false ) { $match = array(); - while (preg_match('/(.*)\/\*\s*(.*?)\s*\*\/(.*)/', $comment,$match)) { + while (preg_match('!(.*)/\*\s*(.*?)\s*\*/(.*)!', $comment,$match)) { $pre=$match[1]; $auto=$match[2]; $post=$match[3]; -- 2.20.1