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

credit-card-regex

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credit-card-regex - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

3

index.js
'use strict';
var americanExpress = '(?:3[47][0-9]{13})';

@@ -15,3 +14,3 @@ var dinersClub = '(?:3(?:0[0-5]|[68][0-9])[0-9]{11})';

return opts.exact ? new RegExp('(?:^' + pattern + '$)') :
new RegExp('(?:^|\\s)?(["\'])?' + pattern + '\\1', 'g');
new RegExp('(["\'])?' + pattern + '\\1', 'g');
};

@@ -18,0 +17,0 @@ }

{
"name": "credit-card-regex",
"version": "1.2.2",
"version": "1.2.3",
"description": "Regular expression for matching credit card numbers",

@@ -5,0 +5,0 @@ "license": "MIT",

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