[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#25457: kjs split() doesn't seem to work
From:       Harri Porten <harri () trolltech ! com>
Date:       2001-05-14 9:58:22
[Download RAW message or body]

> > Simple test javascript file, demonstrating a bug that causes bugzilla to malfunction in Konqueror:
> > 
> > function test() {
> >  var s = "Microsoft is evil!";
> >  if(s.split(/[\s]+/).length < 2)
> >   alert("s doesn't contain spaces");
> > }
> 
> split() now works with regexps. Strangely enough the + operator only
> works for me when libpcre is being used. Above test is passed now.
> Please come back to me if the real world case is different.

Correction for the records: '+' works fine with and without libpcre.
It's special symbols like \s that don't seem to work with the system
library. 

Harri.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic