Skip to content

Commit 2a43c5e

Browse files
committed
Check protocol by regex
1 parent 3517f77 commit 2a43c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = Plugin;
22

33
function Plugin(db) {
4-
if (db.driver.config.protocol != "mysql:") {
4+
if (!(new RegExp('^mysql', 'i')).test(db.driver.config.protocol)) {
55
throw new Error("ORM MySQL FTS plugin does not support drivers other than MySQL");
66
}
77

0 commit comments

Comments
 (0)