{"action":"created","issue":{"url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/17","labels_url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/17/comments","events_url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/17/events","html_url":"https://github.com/benjamingr/RegExp.escape/issues/17","id":89356753,"number":17,"title":"Interaction with backreferences / variable-width escape sequences","user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benjamingr/RegExp.escape/labels/discussion%20appreciated","name":"discussion appreciated","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-06-18T17:57:09Z","updated_at":"2015-06-25T06:48:12Z","closed_at":"2015-06-20T11:04:15Z","body":"Using something like `new RegExp(\"(foo)\\\\1\" + RegExp.escape(input))`, if `input` were to start with a number, this would extend the backreference `\\1` to something like `\\11`. Does this need to be accounted for?"},"comment":{"url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/comments/115127466","html_url":"https://github.com/benjamingr/RegExp.escape/issues/17#issuecomment-115127466","issue_url":"https://api.github.com/repos/benjamingr/RegExp.escape/issues/17","id":115127466,"user":{"login":"minitech","id":1145425,"avatar_url":"https://avatars.githubusercontent.com/u/1145425?v=3","gravatar_id":"","url":"https://api.github.com/users/minitech","html_url":"https://github.com/minitech","followers_url":"https://api.github.com/users/minitech/followers","following_url":"https://api.github.com/users/minitech/following{/other_user}","gists_url":"https://api.github.com/users/minitech/gists{/gist_id}","starred_url":"https://api.github.com/users/minitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minitech/subscriptions","organizations_url":"https://api.github.com/users/minitech/orgs","repos_url":"https://api.github.com/users/minitech/repos","events_url":"https://api.github.com/users/minitech/events{/privacy}","received_events_url":"https://api.github.com/users/minitech/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T06:48:12Z","updated_at":"2015-06-25T06:48:12Z","body":"Is `new RegExp(\"\\\\u111\" + RegExp.escape(s))` worth considering, where a–f (and A–F) would additionally need to be escaped? `/\\u111/` on its own is a valid regular expression matching the literal text `u111`."}}