Comparing version 0.0.2 to 0.0.3
@@ -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", |
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
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
4813
9
144