diff --git a/lib/utils.js b/lib/utils.js index 4f21e7ef1e3..8a6eb998f59 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -96,8 +96,8 @@ function acceptParams (str) { var splitIndex = str.indexOf('=', index); if (splitIndex === -1) break; - var colonIndex = str.indexOf(';', index); - var endIndex = colonIndex === -1 ? length : colonIndex; + var nextColonIndex = str.indexOf(';', index); + var endIndex = nextColonIndex === -1 ? length : colonIndex; if (splitIndex > endIndex) { index = str.lastIndexOf(';', splitIndex - 1) + 1;