From 05493830736f444cf7723ddd576d33329b6c3ef7 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Wed, 6 Jun 2012 17:20:43 +0100 Subject: [PATCH] [backend/memory][xs]: change full text query in memory backend to ignore case. --- src/backend/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/memory.js b/src/backend/memory.js index f42aede6..daf78dbf 100644 --- a/src/backend/memory.js +++ b/src/backend/memory.js @@ -110,7 +110,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {}; var value = rawdoc[field.id]; if (value !== null) { value = value.toString(); } // TODO regexes? - foundmatch = foundmatch || (value === term); + foundmatch = foundmatch || (value.toLowerCase() === term.toLowerCase()); // TODO: early out (once we are true should break to spare unnecessary testing) // if (foundmatch) return true; });