Skip to content

Commit

Permalink
Fixed: Second part of a reserved range is exclusive (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
dflemstr authored and dcodeIO committed Oct 11, 2018
1 parent 02482a6 commit 6fa4c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/namespace.js
Expand Up @@ -62,7 +62,7 @@ Namespace.arrayToJSON = arrayToJSON;
Namespace.isReservedId = function isReservedId(reserved, id) {
if (reserved)
for (var i = 0; i < reserved.length; ++i)
if (typeof reserved[i] !== "string" && reserved[i][0] <= id && reserved[i][1] >= id)
if (typeof reserved[i] !== "string" && reserved[i][0] <= id && reserved[i][1] > id)
return true;
return false;
};
Expand Down

0 comments on commit 6fa4c34

Please sign in to comment.