my $text = shift;
my ($cmd, @args_tmp) = split(/ /,$text);
my $args_txt = &Util::trim(join(" ",@args_tmp));
- if($cmd =~ s/}}(.*?)$//){
+ if($cmd =~ s/\}\}(.*?)$//){
return { command=>$cmd, args=>[], post=>"$1 $args_txt"};
}
}
# ¥Ñ¥é¥°¥é¥Õ¥×¥é¥°¥¤¥ó
- if($line =~ /^{{(.+}})$/){
+ if($line =~ /^\{\{(.+\}\})$/){
if(!$self->{block}){
my $plugin = $self->{wiki}->parse_inline_plugin($1);
my $info = $self->{wiki}->get_plugin_info($plugin->{command});
}
next;
}
- } elsif($line =~ /^{{(.+)$/){
+ } elsif($line =~ /^\{\{(.+)$/){
if ($self->{block}) {
my $plugin = $self->{wiki}->parse_inline_plugin($1);
my $info = $self->{wiki}->get_plugin_info($plugin->{command});
while ($source ne q{}) {
# ¤É¤Î¥¤¥ó¥é¥¤¥ó Wiki ½ñ¼°¤ÎÀèƬ¤Ë¤â match ¤·¤Ê¤¤¾ì¹ç
- if (!($source =~ /^(.*?)((?:{{|\[\[?|https?:|mailto:|f(?:tp:|ile:)|'''?|==|__|<<).*)$/)) {
+ if (!($source =~ /^(.*?)((?:\{\{|\[\[?|https?:|mailto:|f(?:tp:|ile:)|'''?|==|__|<<).*)$/)) {
# ¥¡¼¥ï¡¼¥É¸¡º÷¡¦ÃÖ´¹½èÍý¤Î¤ß¼Â»Ü¤·¤Æ½ªÎ»¤¹¤ë
push @array, $self->_parse_line_keyword($pre . $source);
return @array;
@parsed = ();
# ¥×¥é¥°¥¤¥ó
- if ($source =~ /^{{/) {
+ if ($source =~ /^\{\{/) {
$source = $';
my $plugin = $self->{wiki}->parse_inline_plugin($source);
unless($plugin){
foreach(@lines){
$content = $content.$_."\n";
- if(/^{{bbs\s*.*}}$/ && $flag==0){
+ if(/^\{\{bbs\s*.*\}\}$/ && $flag==0){
if($form_count==$count){
$content .= "!!$subject - $name (".&Util::format_date(time()).")\n".
"$message\n";
my @category;
foreach my $line (split(/\n/,$source)){
if(index($line," ")!=0 && index($line,"\t")!=0 && index($line,"//")!=0){
- while($line =~ /{{(category\s+(.+?)\s*}})/g){
+ while($line =~ /\{\{(category\s+(.+?)\s*\}\})/g){
my $inline = $wiki->parse_inline_plugin($1);
if(@{$inline->{args}} > 1 and $inline->{args}->[-1] eq 'nolink'){
pop @{$inline->{args}};
# ¿·Ãå½ç¤Î¾ì¹ç
if($option eq "reverse"){
$content = $content.$_."\n";
- if(/^{{comment\s*.*}}$/ && $flag==0){
+ if(/^\{\{comment\s*.*\}\}$/ && $flag==0){
if($form_count==$count){
$content = $content."*$message - $name (".Util::format_date(time()).")\n";
$flag = 1;
# Åê¹Æ½ç¤Î¾ì¹ç
} else {
- if(/^{{comment\s*.*}}$/ && $flag==0){
+ if(/^\{\{comment\s*.*\}\}$/ && $flag==0){
if($form_count==$count){
$content = $content."*$message - $name (".Util::format_date(time()).")\n";
$flag = 1;
my $page = shift;
my @lines = split(/\n/,$wiki->get_page($page));
foreach(@lines){
- if(/^{{comment\s*.*}}$/){
+ if(/^\{\{comment\s*.*\}\}$/){
return 1;
}
}
$self->{block_level} = 0;
foreach my $line (@lines){
- if($line =~ /^{{.+}}$/){
+ if($line =~ /^\{\{.+\}\}$/){
$buf .= $line."\n";
next;
- } elsif($line =~ /^{{.+$/){
+ } elsif($line =~ /^\{\{.+$/){
$self->{block_level}++;
$buf .= $line."\n";
next;
} elsif($self->{block_level} > 0){
- if($line eq "}}"){
+ if($line eq "\}\}"){
$self->{block_level}--;
}
$buf .= $line."\n";
$self->{block_level} = 0;
foreach my $line (@lines){
- if($line =~ /^{{.+}}$/){
+ if($line =~ /^\{\{.+\}\}$/){
$buf .= $line."\n";
next;
- } elsif($line =~ /^{{.+$/){
+ } elsif($line =~ /^\{\{.+$/){
$self->{block_level}++;
$buf .= $line."\n";
next;