issue-regex
Advanced tools
Comparing version 1.0.0 to 2.0.0
'use strict'; | ||
module.exports = () => (/(?:[\w-.]+\/[\w-.]+)?#[1-9]\d*/g); | ||
// https://regex101.com/r/SQrOlx/12 | ||
module.exports = () => /(?:\w[\w-.]+\/\w[\w-.]+|\B)#[1-9]\d*\b/g; |
{ | ||
"name": "issue-regex", | ||
"version": "1.0.0", | ||
"description": "Regular expression for matching issue references", | ||
"license": "MIT", | ||
"repository": "sindresorhus/issue-regex", | ||
"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": "*" | ||
} | ||
"name": "issue-regex", | ||
"version": "2.0.0", | ||
"description": "Regular expression for matching issue references", | ||
"license": "MIT", | ||
"repository": "sindresorhus/issue-regex", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"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": "*" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # issue-regex [![Build Status](https://travis-ci.org/sindresorhus/issue-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/issue-regex) | ||
``` | ||
$ npm install --save issue-regex | ||
$ npm install issue-regex | ||
``` | ||
@@ -23,3 +23,5 @@ | ||
It matches issue references as best as JS regular expressions can, see the [playground at Regex101](https://regex101.com/r/SQrOlx/12). | ||
## API | ||
@@ -26,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2651
3
40