jetpack-id
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -35,3 +35,3 @@ /** | ||
function isDomain (s) { | ||
return /^[0-9a-zA-Z\-]*\@[0-9a-zA-Z\-]+(\.[0-9a-zA-Z\-]+)*$/.test(s); | ||
return /^[0-9a-zA-Z\-_]*\@[0-9a-zA-Z\-]+(\.[0-9a-zA-Z\-]+)*$/.test(s); | ||
} |
{ | ||
"name": "jetpack-id", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Creates an ID from a Firefox Jetpack manifest", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,2 +17,6 @@ var getID = require("../"); | ||
}); | ||
it("allows underscores in ID", function () { | ||
var id = "my_addon"; | ||
expect(getID({ id: id })).to.be.equal(id + "@jetpack"); | ||
}); | ||
it("Returns valid name when `name` exists", function () { | ||
@@ -19,0 +23,0 @@ var id = "my-addon"; |
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
4615
7
61