Socket
Socket
Sign inDemoInstall

reges

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reges - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

test/extension.js

18

lib/reges.js

@@ -22,6 +22,10 @@ /*

exports.matchContentType = function (str) {
var match = str.match(exports.contentType);
return match ? match[0] : null;
}
exports.charset = /charset=('|")?([a-zA-Z-0-9-_]+)('|")?/i;
exports.utf8 = /utf-?8/i;
exports.matchCharset = function (str) {

@@ -33,6 +37,10 @@ var match = str.match(exports.charset);

exports.matchContentType = function (str) {
var match = str.match(exports.contentType);
exports.utf8 = /utf-?8/i;
return match ? match[0] : null;
exports.extension = /\.([0-9a-z]+)$/i;
exports.matchExtension = function (str) {
var match = str.match(exports.extension);
return match ? match[1] : null;
}
{
"name": "reges",
"description": "A collection of regular expressions",
"version": "0.0.2",
"version": "0.0.3",
"author": "Shallker <imshallker@gmail.com>",

@@ -6,0 +6,0 @@ "main": "index.js",

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