Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
Secure script
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 2, 2017
1 parent 880fb30 commit 29bd962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-data.js
Expand Up @@ -60,7 +60,7 @@ const invertedEqualsEnv = Object.keys(envs)
if (!isNaN(version)) {
Object.keys(envs).forEach((equals) => {
const equalsVersion = parseInt(equals.replace(env, ""), 10);
if (equalsVersion <= version) {
if (!isNaN(equalsVersion) && equalsVersion <= version) {
if (!a[equals]) a[equals] = [];
a[equals].push(b);
}
Expand Down

0 comments on commit 29bd962

Please sign in to comment.