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

pg-hstore

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-hstore - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

2

lib/index.js

@@ -48,3 +48,3 @@ (function () {

//using [\s\S] to match any character, including line feed and carriage return,
r = /(["])(?:\\\1|[\s\S])*?\1|NULL/g,
r = /(["])(?:\\\1|\\\\|[\s\S])*?\1|NULL/g,
matches = string.match(r),

@@ -51,0 +51,0 @@ i,

@@ -11,3 +11,3 @@ {

],
"version": "2.3.1",
"version": "2.3.2",
"main": "lib/index.js",

@@ -14,0 +14,0 @@ "homepage": "https://github.com/scarney81/pg-hstore",

@@ -110,3 +110,13 @@ /*globals it, describe, beforeEach */

});
it('should hstore parse a string ending with \\', function (done) {
var source = '"url"=>"http://google.com\\\\","foo"=>"bar"';
hstore.parse(source, function (target) {
should.exist(target);
target.url.should.equal('http://google.com\\');
target.foo.should.equal('bar');
done();
});
});
});
})();
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