feat: remove shadow mixin, dont highlight single letters

This commit is contained in:
Barış Soner Uşaklı
2022-08-25 15:12:51 -04:00
parent bed8d97840
commit da75b07add
2 changed files with 1 additions and 5 deletions

View File

@@ -73,8 +73,3 @@
line-height: $size;
font-size: $font-size;
}
@mixin box-shadow($shadow){
-webkit-box-shadow: $shadow;
box-shadow: $shadow;
}

View File

@@ -310,6 +310,7 @@ define('search', ['translator', 'storage', 'hooks', 'alerts'], function (transla
}
searchQuery = utils.escapeHTML(searchQuery.replace(/^"/, '').replace(/"$/, '').trim());
const regexStr = searchQuery.split(' ')
.filter(word => word.length > 1)
.map(function (word) { return utils.escapeRegexChars(word); })
.join('|');
const regex = new RegExp('(' + regexStr + ')', 'gi');