Comment #1 on issue 2886 by [email protected]: Handling specific regular
expression
http://code.google.com/p/v8/issues/detail?id=2886
This is a duplicate, can't find the original issue now, but someone else
probably knows it.
IIRC, the nested + or * cause this behavior, and it is worse when it
doesn't have a match.
It returns null because "..." isn't matched by your regexp, removing that
from the test string makes it match and it does so in under 20us:
var t = process.hrtime(); "Hello there, best wishes, from
Syria".match(/^((?:, |[\w ]+)+)$/); process.hrtime(t);
[ 0, 17104 ]
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.