From kfm-devel Sat Mar 17 03:46:25 2001 From: Michael Bedy Date: Sat, 17 Mar 2001 03:46:25 +0000 To: kfm-devel Subject: Re: Error in regexp in kjs_html.so X-MARC-Message: https://marc.info/?l=kfm-devel&m=98480087427882 Hi, You said the following did not work: regex=/\\/gi; This was, in fact, caused by a bug in a bug fix. (I'm pretty sure it's my fault. I seem to remember putting the code in that is messing up.) If noone objects to the code below, I will apply the fix to CVS. - Mike --- lexer.cpp 2001/03/07 11:36:28 1.25 +++ lexer.cpp 2001/03/17 03:38:16 @@ -730,7 +730,8 @@ else if (current != '/' || lastWasEscape == true) { record16(current); - lastWasEscape = (current == '\\'); + lastWasEscape = + !lastWasEscape && (current == '\\'); } else { pattern = UString(buffer16, pos16); On Thu, 15 Mar 2001, Otto Bruggeman wrote: > On Wed, 14 Mar 2001, Michael Bedy wrote: > > Hi, > > > > I'm back now, and am busy getting up to date with KDE stuff. I hope to > > take a look at this this weekend. > > > > - Mike > > Hi Mike, > > hope you had a pleasant vacation... And no need to rush :) I lived without > it a couple of months i can live without it a couple of more months if > needed, it is just that the whole website is dependant on this > java-script... But please take your time, i dont want you having to take > another vacation very soon ;) > > Otto > >