OSDN Git Service

[[pukiwiki:注釈のバグ]] 注釈を一行に二つ以上入れた場合におかしくなる問題を修正
authormasui <masui>
Tue, 16 Jul 2002 07:48:41 +0000 (16:48 +0900)
committermasui <masui>
Tue, 16 Jul 2002 07:48:41 +0000 (16:48 +0900)
html.php

index e1aa444..15961db 100644 (file)
--- a/html.php
+++ b/html.php
@@ -1,6 +1,6 @@
 <?
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: html.php,v 1.21 2002/07/15 07:43:57 masui Exp $
+// $Id: html.php,v 1.22 2002/07/16 07:48:41 masui Exp $
 /////////////////////////////////////////////////
 
 // ËÜʸ¤ò¥Ú¡¼¥¸Ì¾¤«¤é½ÐÎÏ
@@ -368,13 +368,7 @@ function inline($line)
 {
        $line = htmlspecialchars($line);
 
-       $line = preg_replace("/(
-
-                                       (\(\(([^\(\)]+)\)\))
-                                       |
-                                       (\(\((.+)\)\))
-
-                               )/ex","make_note(\"$1\")",$line);
+       $line = preg_replace("/\(\(((?:(?!\)\)).)*)\)\)/ex","make_note(\"$1\")",$line);
 
        return $line;
 }