🎨 change removeFirstChar
This commit is contained in:
@@ -15,7 +15,10 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
searchInput(input) {
|
searchInput(input) {
|
||||||
const isTag = R.startsWith('#')
|
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 words = R.filter(isNotEmpty, R.split(' ', input))
|
||||||
const tags = R.filter(isTag, words)
|
const tags = R.filter(isTag, words)
|
||||||
|
|||||||
Reference in New Issue
Block a user