{"name":"issue-regex","version":"1.0.0","description":"Regular expression for matching issue references","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/issue-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["issue","issues","pr","pull","request","reference","references","ref","regex","regexp","regular","expression","github","gh","link"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"16323ab7491b3ed52312f35155b6272f42c0fb4b","bugs":{"url":"https://github.com/sindresorhus/issue-regex/issues"},"homepage":"https://github.com/sindresorhus/issue-regex#readme","_id":"issue-regex@1.0.0","_shasum":"54fccf62ea65e4f47207572b8b78c1b3d9de5f77","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"54fccf62ea65e4f47207572b8b78c1b3d9de5f77","tarball":"http://registry-npm.ywwl.com/issue-regex/download/issue-regex-1.0.0.tgz","integrity":"sha512-epaBdujzVR/S2GziYRRg0KOSalN7PZaOvsH+dtV7gItjKp1MRQZJP1Ch6UzTyDR0tbV9udZOp9PfPdaC8a2s/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD548CLGrYhzNyJPXqjor3Kf4rz5sP3J00SAhwTOMqIVQIhAPemTAmo3QBx9Hmdnr+2LWJjzYXcB670b2fTPKcR07WU"}],"size":1495,"noattachment":false,"key":"/issue-regex/-/issue-regex-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/issue-regex-1.0.0.tgz_1496375991178_0.5625927969813347"},"directories":{},"readme":"# issue-regex\n\n> Regular expression for matching issue references\n\n## Install\n\n```sh\nnpm install issue-regex\n```\n\n## Usage\n\n```js\nimport issueRegex from 'issue-regex';\n\n'Fixes #143 and avajs/ava#1023'.match(issueRegex());\n//=> ['#143', 'avajs/ava#1023']\n```\n\nOrganization name, repository name, and issue number are also available individually in capturing groups 1-3, or named groups `organization`, `repository`, and `issueNumber`:\n\n```js\nissueRegex().exec('Fixes avajs/ava#1023');\n/*\n[\n\t'avajs/ava#1023',\n\t'avajs',\n\t'ava',\n\t'1023',\n\tindex: 6,\n\tinput: 'Fixes avajs/ava#1023',\n\tgroups: {\n\t\torganization: 'avajs',\n\t\trepository: 'ava',\n\t\tissueNumber: '1023'\n\t}\n]\n*/\n```\n\n## API\n\n### issueRegex()\n\nReturns a `RegExp` for matching issue references.\n\n## Important\n\nIf you run the regex against untrusted user input in a server context, you should [give it a timeout](https://github.com/sindresorhus/super-regex).\n\n**I do not consider ReDoS a valid vulnerability for this package.**\n\n## Related\n\n- [linkify-issues](https://github.com/sindresorhus/linkify-issues) - Linkify GitHub issue references\n","publish_time":1496375991276,"_cnpm_publish_time":1496375991276,"dist-tags":{"latest":"4.3.0"}}