mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-19] show search libraries hint (#802)
* [ACA-19] show hint on 400 error * [ACA-19] unit test * [ACA-19] small change * [ACA-19] unit test * [ACA-19] unit tests * [ACA-19] avoid memory leaks with takeUntil * [ACA-19] remove comment & formatting * [ACA-19] update documentation
This commit is contained in:
committed by
Denys Vuika
parent
ff0891009e
commit
dcacbc1210
@@ -87,8 +87,6 @@ export class SearchInputControlComponent implements OnDestroy {
|
||||
}
|
||||
|
||||
isTermTooShort() {
|
||||
const alphanumericTerm = this.searchTerm.replace(/[^0-9a-z]/gi, '');
|
||||
|
||||
return this.searchTerm.length && alphanumericTerm.length < 2;
|
||||
return !!(this.searchTerm && this.searchTerm.length < 2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user