-1…*.indexOf() to native .includes()

This commit is contained in:
djmaze 2020-07-20 21:39:00 +02:00
parent eb15c6e45f
commit 961fa305c9
8 changed files with 19 additions and 19 deletions

View file

@ -73,7 +73,7 @@ class AdvancedSearchPopupView extends AbstractViewNext {
}
buildSearchStringValue(value) {
if (-1 < value.indexOf(' ')) {
if (value.includes(' ')) {
value = '"' + value + '"';
}
return value;