diff --git a/components/Search.vue b/components/Search.vue index a475faf..0ac6429 100644 --- a/components/Search.vue +++ b/components/Search.vue @@ -15,7 +15,10 @@ export default { watch: { searchInput(input) { const isTag = R.startsWith('#') - const removeFirstChar = x => R.splitAt(1, x)[1] + const removeFirstChar = R.compose( + R.join(''), + R.adjust(0, () => '') + ) const words = R.filter(isNotEmpty, R.split(' ', input)) const tags = R.filter(isTag, words)