Skip to content

Commit

Permalink
2.0.1 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shirosaidev committed Apr 4, 2022
1 parent e29166b commit 9fa8ca4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions diskover-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Diskover-web v2 Community Edition Change Log

# [2.0.1] - 2022-04-04
### fixed
- directories with trailing whitespace not returning any search results


# [2.0] - 2022-03-26
### fixed
- minor bug fixes and improvements
Expand Down
8 changes: 6 additions & 2 deletions diskover-web/src/diskover/Diskover.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,12 @@ function sortSearchResults($request, $searchParams)
// predict search request
function predict_search($q)
{
// remove any extra white space
$q = trim($q);
// remove any extra white space and check for escape character and space at end to not trim off trailing space
if (substr($q, -2) == '\ ') {
$q = ltrim($q);
} else {
$q = trim($q);
}

$lucene = false;

Expand Down
2 changes: 1 addition & 1 deletion diskover-web/src/diskover/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
*/

// diskover-web version
$VERSION = '2.0-rc.5 community edition (ce)';
$VERSION = '2.0.1 community edition (ce)';

0 comments on commit 9fa8ca4

Please sign in to comment.