Skip to content

Commit

Permalink
fix: Wrong function call in production
Browse files Browse the repository at this point in the history
  • Loading branch information
schw4rzlicht committed Jun 13, 2020
1 parent 5b576a6 commit cef76ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const packageInformation = require("./package.json");

require("dotenv").config();

if(process.env.NODE_ENV === "production" && !packageInformation.version.matches(/^\d+\.\d+.\d+$/)) {
if(process.env.NODE_ENV === "production" && !packageInformation.version.match(/^\d+\.\d+.\d+$/)) {
process.env.NODE_ENV = "staging";
}

Expand Down

0 comments on commit cef76ca

Please sign in to comment.