@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.
Files changed (2) hide show
  1. package/index.js +5 -2
  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({extended:false}));
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {