diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-19 18:28:40 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-19 18:28:40 +0000 |
commit | 894ae79699fccba212418fe75ce0e729a24e7ecd (patch) | |
tree | 6926175b6c13582b619959adc0094c5ce8620ced /IkiWiki/Plugin | |
parent | ac29bbdf285836702e771be231688ecc3aa7a429 (diff) | |
download | ikiwiki-894ae79699fccba212418fe75ce0e729a24e7ecd.tar ikiwiki-894ae79699fccba212418fe75ce0e729a24e7ecd.tar.gz |
fix regexp
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/otl.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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}; } # }}} |