Bug 158910

Summary: Autoreplace doesn't handle multiple replacements in the same line properly
Product: [Applications] konversation Reporter: cdwinslow
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description cdwinslow 2008-03-07 16:21:12 UTC
Version:           1.0.1 (using KDE 3.5.9)
Installed from:    Fedora RPMs

If you have a line with multiple expressions that match an autoreplace rule using regular expressions and captures, then all the replacements use the same capture.

I experienced this using the wikipedia link rule that is included with konversation.

I typed: 
aaime: much better wikipedia article this way (compare [[Captain_Atom]] to [[dwinslow]])

and got:
 <captain_atom> aaime: much better wikipedia article this way (compare http://en.wikipedia.org/wiki/Special:Search?go=Go&search=Captain_Atom to http://en.wikipedia.org/wiki/Special:Search?go=Go&search=Captain_Atom)

but I expected: 
 <captain_atom> aaime: much better wikipedia article this way (compare http://en.wikipedia.org/wiki/Special:Search?go=Go&search=Captain_Atom to http://en.wikipedia.org/wiki/Special:Search?go=Go&search=dwinslow)
Comment 1 Eike Hein 2008-03-07 18:00:20 UTC
Fixed in SVN.