Skip to content
Snippets Groups Projects
Commit 01e18296 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #5106 from xurizaemon/5105-search_order_typo

Fix typo in result ordering regex.
parents d2fb60f9 edf130d3
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ Meteor.methods({
text = text.replace(/after:(\d{1,2})[\/\.-](\d{1,2})[\/\.-](\d{4})/g, filterAfterDate);
text = text.replace(/on:(\d{1,2})[\/\.-](\d{1,2})[\/\.-](\d{4})/g, filterOnDate);
// Sort order
text = text.replace(/(?:order|sort):(asc|ascend|ascending|desc|descend|descening)/g, sortByTimestamp);
text = text.replace(/(?:order|sort):(asc|ascend|ascending|desc|descend|descending)/g, sortByTimestamp);
// Query in message text
text = text.trim().replace(/\s\s/g, ' ');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment