I\'m using knex to generate my SQL queries. In knex documentation, it shows this
knex
knex(\'users\').where(\'columnName\', \'like\', \'
Use the RLIKE instead of LIKE as below, It should work for you.
function search(term){ knex('table').where('description','rlike',term); ... }