mirror of
https://github.com/typicode/json-server.git
synced 2025-07-29 21:23:41 +08:00
@ -92,6 +92,10 @@ module.exports = (db, name) => {
|
||||
|
||||
if (q) {
|
||||
// Full-text search
|
||||
if (Array.isArray(q)) {
|
||||
q = q[0]
|
||||
}
|
||||
|
||||
q = q.toLowerCase()
|
||||
|
||||
chain = chain.filter((obj) => {
|
||||
|
Reference in New Issue
Block a user