Skip to content

Commit 3bd78f1

Browse files
authored
Merge pull request #283 from nexB/240-handle-searchbox-whitespace
Ignore leading/trailing/isolated whitespace #240
2 parents 2cba4eb + 85e9a14 commit 3bd78f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/app/js/controllers/aboutCodeClueDataTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class AboutCodeClueDataTable extends Controller {
271271
for (let i = 0; i < dataTablesInput.columns.length; i++) {
272272
const orSearch = {};
273273
orSearch[dataTablesInput.columns[i].name] = {
274-
$like: `%${globalSearch}%`
274+
$like: `%${globalSearch.trim()}%`
275275
};
276276
query.where.$and.$or.push(orSearch);
277277
}

0 commit comments

Comments
 (0)