From: Raymond I. <xw...@ya...> - 2003-05-28 16:25:26
|
--- Jesse Vitrone <je...@6t...> wrote: > I think I found a bug in the DynAPI compressor (also > exists in the Brain > Jar one). > > I have something like this to change spaces to > non-breaking spaces. > mystring.replace(/ /, " "); > > But, when I compress it, the space in my regular > expression gets > compressed and I wind up with this: > mystring.replace(//, " "); > > Looks like it's removing the spaces around the / > character (x2f), and > maybe it shouldn't be. > > What do you think? I see your point. In theory I don't think it should compress the space around the / characters. One work arround is to use the following: mystring.replace(/\s/, " "); This I believe is the best way to go. -- Raymond Irving > Jesse > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your > application fit in a > relational database is painful, don't do it! Check > out ObjectStore. > Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |