forked from vikunja/frontend
fix: lint
This commit is contained in:
parent
316b147517
commit
c986759436
|
@ -117,7 +117,7 @@ export const parseTaskText = (text: string, prefixesMode: PrefixMode = PrefixMod
|
||||||
const getItemsFromPrefix = (text: string, prefix: string): string[] => {
|
const getItemsFromPrefix = (text: string, prefix: string): string[] => {
|
||||||
const items: string[] = []
|
const items: string[] = []
|
||||||
|
|
||||||
let itemParts = text.split(' ' + prefix)
|
const itemParts = text.split(' ' + prefix)
|
||||||
if (text.startsWith(prefix)) {
|
if (text.startsWith(prefix)) {
|
||||||
const firstItem = text.split(prefix)[1]
|
const firstItem = text.split(prefix)[1]
|
||||||
itemParts.unshift(firstItem)
|
itemParts.unshift(firstItem)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user