Improve regex

This commit is contained in:
Paul Sori 2016-11-18 01:14:20 -05:00
parent 4e01d2c62d
commit de7afebf03

View File

@ -18,7 +18,7 @@ exports.setup = function(args){
if(!loadJson.databaseplugin){
loadJson.databaseplugin = 'default';
}else{
var re = new RegExp("/^(default|beets)$/i");
var re = new RegExp("^(default|beets)$");
if(!re.test(loadJson.databaseplugin)){
console.log('Incorrect database plugin. Please update and try again');
return false;