Permalink
Browse files

Merge pull request #115 from kimjuik/patch-1

342 행에 정규식에서 ) 가 하나 빠졌습니다.
  • Loading branch information...
wkpark committed Dec 15, 2017
2 parents c470d32 + 418b060 commit 6e4128589fbaaaeb10f84c19a48e3a53db3077c8
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 6e41285

Please sign in to comment.