Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

issue-regex

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

issue-regex - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

index.js
'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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc