var path = '../../../../../../../../../../../../../../'
path.replace(/\/\.\//g, '').replace(/\/+/g, '/')--
You received this message because you are subscribed to the Google Groups "mozilla-rhino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-rhino+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rhino generates Java bytecode for Regex instead of using the java.util package. (The code base is pretty old.)I've wondered whether it'd be faster to use the java.util stuff but I don't think it's an easy job. But it'd be awesome if someone had time to take a look...
On Tue, Oct 10, 2017 at 1:43 AM, Olivia Nelson <the.warl...@gmail.com> wrote:
It seems like rhino process the following javascript slowly, compared to PCREvar path = '../../../../../../../../../../../../../../'path.replace(/\/\.\//g, '').replace(/\/+/g, '/')I'm wondering how regex replace is implemented in rhino, does it use the "Pattern" class in java?
--
You received this message because you are subscribed to the Google Groups "mozilla-rhino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-rhin...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-rhino+unsubscribe@googlegroups.com.