{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/22863","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/22863/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/22863/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/22863/events","html_url":"https://github.com/nodejs/node/issues/22863","id":360357136,"node_id":"MDU6SXNzdWUzNjAzNTcxMzY=","number":22863,"title":"String.match not returning same results as rx.exec","user":{"login":"hiucimon","id":12972738,"node_id":"MDQ6VXNlcjEyOTcyNzM4","avatar_url":"https://avatars1.githubusercontent.com/u/12972738?v=4","gravatar_id":"","url":"https://api.github.com/users/hiucimon","html_url":"https://github.com/hiucimon","followers_url":"https://api.github.com/users/hiucimon/followers","following_url":"https://api.github.com/users/hiucimon/following{/other_user}","gists_url":"https://api.github.com/users/hiucimon/gists{/gist_id}","starred_url":"https://api.github.com/users/hiucimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiucimon/subscriptions","organizations_url":"https://api.github.com/users/hiucimon/orgs","repos_url":"https://api.github.com/users/hiucimon/repos","events_url":"https://api.github.com/users/hiucimon/events{/privacy}","received_events_url":"https://api.github.com/users/hiucimon/received_events","type":"User","site_admin":false},"labels":[{"id":151728679,"node_id":"MDU6TGFiZWwxNTE3Mjg2Nzk=","url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-14T15:42:25Z","updated_at":"2018-09-14T17:03:29Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nv10.8.0\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nDarwin 88e9fe735966 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64\r\nSubsystem: if known, please specify the affected core module name\r\nString.match\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n-->\r\nlet rx=/^\\s*\\[(\\w+)]/g;\r\n// const t=line.match(rx);\r\nconst t=rx.exec((line));\r\nReading a file with lines of data formatted \"'[GR_GG_COF_AWS_Techops_Dev_Developer]',' (AWS Credentials file).\r\nString.match only ever has ONE entry while rx.exec correctly has the 2 entrires.  \r\n* **Version**:\r\nnpm 6.2.0\r\n* **Platform**:\r\nMac\r\n* **Subsystem**:\r\nRegex\r\n\r\n<!-- Please provide more details below this comment. -->\r\nI've done RX for decades and in dozens of languages and platforms, and can find no reasons for this delta. As far as I can see it should have worked in either format, and it was only persistent diagnosis that had me try it the other way. "},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/421422342","html_url":"https://github.com/nodejs/node/issues/22863#issuecomment-421422342","issue_url":"https://api.github.com/repos/nodejs/node/issues/22863","id":421422342,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQyMjM0Mg==","user":{"login":"vsemozhetbyt","id":10393198,"node_id":"MDQ6VXNlcjEwMzkzMTk4","avatar_url":"https://avatars1.githubusercontent.com/u/10393198?v=4","gravatar_id":"","url":"https://api.github.com/users/vsemozhetbyt","html_url":"https://github.com/vsemozhetbyt","followers_url":"https://api.github.com/users/vsemozhetbyt/followers","following_url":"https://api.github.com/users/vsemozhetbyt/following{/other_user}","gists_url":"https://api.github.com/users/vsemozhetbyt/gists{/gist_id}","starred_url":"https://api.github.com/users/vsemozhetbyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsemozhetbyt/subscriptions","organizations_url":"https://api.github.com/users/vsemozhetbyt/orgs","repos_url":"https://api.github.com/users/vsemozhetbyt/repos","events_url":"https://api.github.com/users/vsemozhetbyt/events{/privacy}","received_events_url":"https://api.github.com/users/vsemozhetbyt/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T17:03:29Z","updated_at":"2018-09-14T17:03:29Z","author_association":"MEMBER","body":"It seems to me that the quoted RegExp cannot match against the quoted string and it may contain typos ( `[(\\w+)]` part seems wrong)."}}
{"actor":{"display_login":"vsemozhetbyt"}}