summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/boards.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/boards.js b/models/boards.js
index 61a9c87c..55b0711c 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -272,7 +272,7 @@ Boards.helpers({
const projection = { limit: 10, sort: { createdAt: -1 } };
if (term) {
- let regex = new RegExp(term, 'i');
+ const regex = new RegExp(term, 'i');
query = {
boardId: this._id,