express-xml-bodyparser
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -68,2 +68,2 @@ /** | ||
exports.regexp = /^application\/([\w!#\$%&\*`\-\.\^~]*\+)?xml$/i; | ||
exports.regexp = /^(text\/xml|application\/([\w!#\$%&\*`\-\.\^~]+\+)?xml)$/i; |
{ | ||
"name": "express-xml-bodyparser", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Simple XML body parser connect/express middleware", | ||
@@ -5,0 +5,0 @@ "author": "Matthias Adler <macedigital@gmail.com> (http://matthiasadler.info/)", |
@@ -8,6 +8,7 @@ var assert = require('assert'), | ||
var regexp = /^application\/([\w!#\$%&\*`\-\.\^~]*\+)?xml$/i; | ||
var regexp = /^(text\/xml|application\/([\w!#\$%&\*`\-\.\^~]+\+)?xml)$/i; | ||
it('should detect common XML mime-types', function () { | ||
assert.equal(true, regexp.test('text/xml')); | ||
assert.equal(true, regexp.test('application/xml')); | ||
@@ -14,0 +15,0 @@ assert.equal(true, regexp.test('application/rss+xml')); |
7331
74