From: joey Date: Sat, 19 Aug 2006 18:28:40 +0000 (+0000) Subject: fix regexp X-Git-Tag: 1.21~2 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/894ae79699fccba212418fe75ce0e729a24e7ecd fix regexp --- diff --git a/IkiWiki/Plugin/otl.pm b/IkiWiki/Plugin/otl.pm index 40c529761..314ed28ad 100644 --- a/IkiWiki/Plugin/otl.pm +++ b/IkiWiki/Plugin/otl.pm @@ -21,8 +21,8 @@ sub filter (@) { #{{{ "smileys/star_on.png", 0); my $unchecked=IkiWiki::htmllink($params{page}, $params{page}, "smileys/star_off.png", 0); - $params{content}=~s/^(\s+)\[X\]\s/${1}$checked /mg; - $params{content}=~s/^(\s+)\[_\]\s/${1}$unchecked /mg; + $params{content}=~s/^(\s*)\[X\]\s/${1}$checked /mg; + $params{content}=~s/^(\s*)\[_\]\s/${1}$unchecked /mg; return $params{content}; } # }}}