[Konversation-devel] [Bug 139447] having fun with the auto replace feature
Travis McHenry
wordsizzle at gmail.com
Sun Apr 5 05:48:41 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=139447
--- Comment #1 from Travis McHenry <wordsizzle gmail com> 2009-04-05 05:48:40 ---
Created an attachment (id=32606)
--> (http://bugs.kde.org/attachment.cgi?id=32606)
autoreplace patch for regexp commas
The config file uses commas to seperate the autoreplace information.
(checked,input/output,regexp,url). A comma is valid syntax for regexp so this
causes problems. The original code uses .section(',',2,2) to grab the regexp
which in the above test case stops at 5. Then it uses .section(',',3) to grab
everything after that 3rd comma adding part regexp to the beginning of the url.
The simplest solution I could see is putting the url before the regexp
(checked,input/output,url,regexp) since a url will never have a comma (afaik).
BUT: This causes current configurations to flip the regexp and url in the
autoreplace configuration menu. After you edit the preferences to fix that
however everything works just as it should including for the test case.
Perhaps there's some way to counteract this caveat?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list