Re: string.split();ã By: Digital Man to MCMLXXIX on Tue Sep 28 2010 15:16:24ãã > Re: string.split();ã > By: MCMLXXIX to Digital Man on Mon Sep 27 2010 12:21 pmã > ã > > I've been working on something that splits a string at certain matchã > > points, and noticed that it crashes JSEXEC in windows, but not in linux..ã > >ã > > try this:ã > >ã > > "this is a test".split(/(is|a|test)/ig);ã > ã > It is interesting that it's crashing. Did you confirm that you're testing wiã > the same version of SpiderMonkey (jslib) on Windows and Linux? When I get aã > chance, I'll see if I can pass on a trace to the SpiderMonkey guys. They mayã > have already fixed this one.ã > ã > Anyway, String.split() doesn't take a regexp as an argument, so what you'reã > trying to do won't work anyway. Seeã >
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String ã > details.ã > ããit does take a regexp as an argument, and the above statement works fine inãlinux, I can only assume it is the same version of spidermonkey, as they areãboth running the same dev build of synchronet. same everything.ããthe "g" wasnt necessary in that above example, I realize, but it does actuallyãwork... result: th,is, ,is, ,a, ,test,ãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã