@scvo/router
Advanced tools
Comparing version 1.1.29 to 1.1.30
@@ -173,3 +173,3 @@ "use strict"; | ||
queryParams.forEach(function (param) { | ||
if (param.indexOf('[]') === param.length - 2) { | ||
if (param.length > 2 && param.indexOf('[]') === param.length - 2) { | ||
var newParam = param.substr(0, param.length - 2); | ||
@@ -176,0 +176,0 @@ var value = _this.arrayify(query[param]); |
{ | ||
"name": "@scvo/router", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"description": "A moderately oppinionated web application framework based around mapping routes to tasks and then rendering with handlebars", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
@@ -158,3 +158,3 @@ // System imports | ||
queryParams.forEach((param: string) => { | ||
if (param.indexOf('[]') === param.length - 2) { | ||
if (param.length > 2 && param.indexOf('[]') === param.length - 2) { | ||
const newParam = param.substr(0, param.length - 2); | ||
@@ -161,0 +161,0 @@ const value = this.arrayify(query[param]); |
Sorry, the diff of this file is not supported yet
335484