Permalink
Browse files

342 행에 정규식에서 ) 가 하나 빠졌습니다.

에러가 나서 살펴보니 정규식에 ) 가 하나 빠져 있습니다 ^^
  • Loading branch information...
kimjuik committed Oct 25, 2017
1 parent c470d32 commit 418b060da28716ecc170dc3097e853ae12b10b51
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/Comment.php
View
@@ -339,7 +339,7 @@ function do_comment($formatter,$options=array()) {
$body= preg_replace('/'.preg_quote($str).'/',$savetext.$str,$body,1);
} else if (preg_match("/\n##Comment\n/i",$body)) {
$body= preg_replace("/\n##Comment\n/i","\n##Comment\n$savetext",$body,1);
} else if (preg_match("/^((\[\[|\<\<)Comment(\([^\)]*\))?(\]\]|>>)/m",$body)) {
} else if (preg_match("/^((\[\[|\<\<)Comment(\([^\)]*\))?(\]\]|>>))/m",$body)) {
$body= preg_replace("/^((\[\[|\<\<)Comment(\([^\)]*\))?(\]\]|>>))/m",$savetext."\\1",$body,1);
} else
$body.=$savetext;

0 comments on commit 418b060

Please sign in to comment.