diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 738daee..e0a731f 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -43,12 +43,14 @@ Template.profile.helpers({ rules: [{ token: '', collection: classes, + field: 'name', template: Template.classDisplay, filter: { privacy: false, status: true }, selector: (match) => { + match = new RegExp(match, 'i'); return {or: [{'name': match}, {'teacher': match}, {'hour': match}]}; } }]