mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Improve regex
This commit is contained in:
parent
4e01d2c62d
commit
de7afebf03
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user