@nakedcreativity/cee-ms-node 0.3.28 → 0.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -21,7 +21,10 @@ function ceems(config) {
|
|
|
21
21
|
this.app.use(bodyParser.json({
|
|
22
22
|
limit: config.parseLimit || '250kb'
|
|
23
23
|
}));
|
|
24
|
-
this.app.use(bodyParser.urlencoded({
|
|
24
|
+
this.app.use(bodyParser.urlencoded({
|
|
25
|
+
extended:false,
|
|
26
|
+
limit: config.parseLimit || '250kb'
|
|
27
|
+
}));
|
|
25
28
|
|
|
26
29
|
this.engine = Liquid({
|
|
27
30
|
root: path.resolve('./views/'), // for layouts and partials
|
|
@@ -225,7 +228,7 @@ function ceems(config) {
|
|
|
225
228
|
|
|
226
229
|
this.engine.registerFilter('active', (path, match, cssClass) => {
|
|
227
230
|
|
|
228
|
-
var regex = new RegExp("^"+match)
|
|
231
|
+
var regex = new RegExp("^"+match+"$")
|
|
229
232
|
|
|
230
233
|
if(regex.test(path)){
|
|
231
234
|
return cssClass
|