diff --git a/lib/parse.js b/lib/parse.js index 71362db0..d6a3823d 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -67,7 +67,7 @@ var parseValues = function parseQueryStringValues(str, options) { // Check if parts exceed the parameter limit and handle it if (options.throwOnLimitExceeded && parts.length > limit) { - throw new Error(`Parameter limit exceeded. Only ${limit} parameters allowed.`); + throw new Error('Parameter limit exceeded. Only ' + limit + ' parameters allowed.'); } var skipIndex = -1; // Keep track of where the utf8 sentinel was found