-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The /u flag should enable a special parsing mode in which astral ranges can be used, and surrogate pairs only count as a single symbol (i.e. get matched by .).
See the example here, for example: http://mathiasbynens.be/notes/javascript-unicode#astral-ranges Currently regexp.js fails to parse the regular expression with the emoji ranges because ES5 doesn’t support it. But with the /u flag, ES6 will! Here’s a link to the demo page with the example prefilled: http://jviereck.github.io/regexp.js/#regexp=%5B%F0%9F%92%A9-%F0%9F%92%AB%5D&input=%F0%9F%92%AA
More info on the /u flag: http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/#RegExp
Metadata
Metadata
Assignees
Labels
No labels