Comparing version 2.3.1 to 2.3.2
@@ -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(); | ||
}); | ||
}); | ||
}); | ||
})(); |
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
21949
366