Skip to content

Commit

Permalink
factoring: english syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixleo22 committed Jun 23, 2021
1 parent 8784eec commit 054f6f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/cmds/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const manageConfig = async (args) => {

if (args.ezunpaywallURL) {
const regexURL = /^(http|https):\/\/[^ "]+$/;
const valideURL = regexURL.test(args.url);
if (valideURL) {
const isValidURL = regexURL.test(args.url);
if (isValidURL) {
config.ezunpaywallURL = args.ezunpaywallURL;
} else {
console.error(`'${args.ezunpaywallURL}' is not a valide URL`);
Expand All @@ -85,8 +85,8 @@ const manageConfig = async (args) => {

if (args.ezmetaURL) {
const regexURL = /^(http|https):\/\/[^ "]+$/;
const valideURL = regexURL.test(args.url);
if (valideURL) {
const isValidURL = regexURL.test(args.url);
if (isValidURL) {
config.ezmetaURL = args.ezmetaURL;
} else {
console.error(`'${args.ezmetaURL}' is not a valide URL`);
Expand Down

0 comments on commit 054f6f2

Please sign in to comment.