{"action":"opened","issue":{"url":"https://api.github.com/repos/slevithan/xregexp/issues/110","labels_url":"https://api.github.com/repos/slevithan/xregexp/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/slevithan/xregexp/issues/110/comments","events_url":"https://api.github.com/repos/slevithan/xregexp/issues/110/events","html_url":"https://github.com/slevithan/xregexp/issues/110","id":109199446,"number":110,"title":"Support astral \\u{...} outside of character classes without native /u","user":{"login":"slevithan","id":1466797,"avatar_url":"https://avatars.githubusercontent.com/u/1466797?v=3","gravatar_id":"","url":"https://api.github.com/users/slevithan","html_url":"https://github.com/slevithan","followers_url":"https://api.github.com/users/slevithan/followers","following_url":"https://api.github.com/users/slevithan/following{/other_user}","gists_url":"https://api.github.com/users/slevithan/gists{/gist_id}","starred_url":"https://api.github.com/users/slevithan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slevithan/subscriptions","organizations_url":"https://api.github.com/users/slevithan/orgs","repos_url":"https://api.github.com/users/slevithan/repos","events_url":"https://api.github.com/users/slevithan/events{/privacy}","received_events_url":"https://api.github.com/users/slevithan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slevithan/xregexp/labels/enhancement","name":"enhancement","color":"3794dc"},{"url":"https://api.github.com/repos/slevithan/xregexp/labels/syntax","name":"syntax","color":"ffa200"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/slevithan/xregexp/milestones/2","html_url":"https://github.com/slevithan/xregexp/milestones/v3.1.0","labels_url":"https://api.github.com/repos/slevithan/xregexp/milestones/2/labels","id":1275364,"number":2,"title":"v3.1.0","description":"Release 3.1.0","creator":{"login":"slevithan","id":1466797,"avatar_url":"https://avatars.githubusercontent.com/u/1466797?v=3","gravatar_id":"","url":"https://api.github.com/users/slevithan","html_url":"https://github.com/slevithan","followers_url":"https://api.github.com/users/slevithan/followers","following_url":"https://api.github.com/users/slevithan/following{/other_user}","gists_url":"https://api.github.com/users/slevithan/gists{/gist_id}","starred_url":"https://api.github.com/users/slevithan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slevithan/subscriptions","organizations_url":"https://api.github.com/users/slevithan/orgs","repos_url":"https://api.github.com/users/slevithan/repos","events_url":"https://api.github.com/users/slevithan/events{/privacy}","received_events_url":"https://api.github.com/users/slevithan/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-08-27T06:09:42Z","updated_at":"2015-09-30T23:16:25Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-30T23:16:25Z","updated_at":"2015-09-30T23:16:25Z","closed_at":null,"body":"XRegExp 3.0.0 introduced support for ES6's `\\u{...}` syntax in all browsers, but requires native flag `u` if this syntax is used for astral code points--i.e. above `\\u{FFFF}`. However, it would not require much work to support astral `\\u{...}` outside of character classes using surrogate pairs. You'd simple need to generate the surrogate pair and wrap it with `(?: )`. The wrapping would be to allow it to work as expected with following quantifiers.\r\n\r\nUnfortunately, an error would still need to be thrown if astral `\\u{...}` is used *within* character classes and the regex does not use native `u`."}}