]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/smiley.pm
typos
[ikiwiki.git] / IkiWiki / Plugin / smiley.pm
index 96d7f5900b2f0b109b89dc804db31a596c826edc..50f2686277afa2de60ef86bd88a870938f1c96e4 100644 (file)
@@ -79,11 +79,12 @@ MATCH:      while (m{(?:^|(?<=\s|>))(\\?)$smiley_regexp(?:(?=\s|<)|$)}g) {
                        substr($_, $spos, length($smiley))=
                                htmllink($params{page}, $params{destpage},
                                         $smileys{$smiley}, linktext => $smiley);
+                       pos=$epos+1;
                }
 
                # Breaks out at end, otherwise it will scan through again,
                # replacing de-escaped ones.
-               last unless defined pos;
+               #last unless defined pos;
        }
 
        return $_;