Comment #1 on issue 2436 by math...@qiwi.be: Surrogate pairs are not
accepted in regular expression character ranges
http://code.google.com/p/v8/issues/detail?id=2436
Like you said, this is not a V8 bug. IMHO this ticket can be closed.
Full Unicode support in regular expressions is scheduled for ES6 through
the `/u` flag:
http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/index.html#RegExp
Meanwhile, use something like Regenerate (http://mths.be/regenerate) to
easily generate regular expressions that deal with astral Unicode symbols:
regenerate.fromSymbolRange('\uDB40\uDD00', '\uDB40\uDDEF');
'\\uDB40[\\uDD00-\\uDDEF]'
regenerate.fromCodePointRange(0xE0100, 0xE01EF);
'\\uDB40[\\uDD00-\\uDDEF]'
For your example, it seems like the regular expression you were looking for
is `/\uDB40[\uDD00-\uDDEF]/`.
--
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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.