diff --git a/lib/plugin.js b/lib/plugin.js index 8892b8e..8262929 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -1,7 +1,7 @@ module.exports = Plugin; function Plugin(db) { - if (db.driver.config.protocol != "mysql:") { + if (!(new RegExp('^mysql', 'i')).test(db.driver.config.protocol)) { throw new Error("ORM MySQL FTS plugin does not support drivers other than MySQL"); }