Bug 158910 - Autoreplace doesn't handle multiple replacements in the same line properly
Summary: Autoreplace doesn't handle multiple replacements in the same line properly
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.0.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 16:21 UTC by cdwinslow
Modified: 2008-03-07 18:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.