🎨 change removeFirstChar

This commit is contained in:
Unknown
2019-10-24 13:30:01 +02:00
parent d3ebdd0220
commit 6c5d8270c0

View File

@@ -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)