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

one-validation

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-validation - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

package.json

@@ -14,3 +14,3 @@ {

"description": "Regexp based validation collection for common internet validation tasks",
"version": "2.1.0",
"version": "2.2.0",
"repository": {

@@ -17,0 +17,0 @@ "url": "git://github.com/One-com/one-validation.git"

@@ -102,2 +102,18 @@ /*global beforeEach, describe, it*/

});
describe('#rootRelativeUrl', function () {
beforeEach(function () {
regExp = oneValidation.rootRelativeUrl;
});
it('should accept valid input', function () {
expect('/', 'to pass');
expect('/foo.bar', 'to pass');
expect('/foo.bar/baz.quux?foo=bar&quux=zoo#pronk', 'to pass');
});
it('should reject invalid input', function () {
expect('', 'not to pass');
});
});
});

@@ -87,2 +87,5 @@ /*global module, define*/

// Root-relative URL. Same as pathnameSearchHash, except it can't be empty
fragments.rootRelativeUrl = new RegExp(fragments.pathnameSearchHash.source.replace(/\?$/, ''));
function createHttpishUrlRegExp(options) {

@@ -89,0 +92,0 @@ // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]

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